wp_add_privacy_policy_content ( $plugin_name, $policy_text )
- (string) policy_text The suggested content for inclusion in the policy.
- Introduced in WordPress: 4.9.6
- Deprecated in WordPress: —
The suggested text should contain information about any functionality that affects user privacy,
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:
The HTML contents of the `$policy_text` supports use of a specialized `.privacy-policy-tutorial`
CSS class which can be used to provide supplemental information. Any content contained within
HTML elements that have the `.privacy-policy-tutorial` CSS class applied will be omitted
from the clipboard when the section content is copied.
Intended for use with the `'admin_init'` action.