wp_add_privacy_policy_content


wp_add_privacy_policy_content ( $plugin_name, $policy_text )

Parameters:
  • (string) $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
  • (string) $policy_text The suggested content for inclusion in the policy.
Defined at:

Description

Helper function for adding content to the Privacy Policy Guide.

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 on the Privacy Policy Guide screen.

A plugin or theme can use this function multiple times as long as it will help to better present the suggested policy content. For example modular plugins such as WooCommerse or Jetpack can add or remove suggested content depending on the modules/extensions that are enabled. For more information see the Plugin Handbook: https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/.

Intended for use with the 'admin_init' action.

Related Functions

the_privacy_policy_link, get_the_privacy_policy_link, get_privacy_policy_url, wp_ajax_replyto_comment, wp_ajax_wp_privacy_export_personal_data

Top Google Results

User discussions

wpseek mobile