WP_Privacy_Policy_Content::add

SummerySummery

Add content to the postbox shown when editing the privacy policy.

Syntax

WP_Privacy_Policy_Content::add( string $plugin_name, string $policy_text )

DescriptionDescription

Plugins and themes should suggest text for inclusion in the site’s privacy policy. The suggested text should contain information about any functionality that affects user privacy, and will be shown in the Suggested Privacy Policy Content postbox.

Intended for use from wp_add_privacy_policy_content().

ParametersParameters

$plugin_name

(string) (Required) The name of the plugin or theme that is suggesting content for the site's privacy policy.

$policy_text

(string) (Required) The suggested content for inclusion in the policy.

SourceSource

File: wp-admin/includes/class-wp-privacy-policy-content.php


			

ChangelogChangelog

Changelog
Version Description
4.9.6 Introduced.
Scroll to Top