WP_Privacy_Policy_Content
- Since
- 4.9.6
- Source
wp-admin/includes/class-wp-privacy-policy-content.php:10
WP_Privacy_Policy_Content class.
Compatibility
- WordPress
- since 4.9.6
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 1
Every hook that fires from inside WP_Privacy_Policy_Content, in the order it appears in the class, grouped by the method that fires it.
WP_Privacy_Policy_Content::get_default_content()
- do_action( wp_get_default_privacy_policy_content )filter_deprecated line 695
Properties · 1
$policy_contentprivate static
Methods · 10
- __construct()Constructor
- add()Adds content to the postbox shown when editing the privacy policy.
- text_change_check()Performs a quick check to determine whether any privacy info has changed.
- policy_text_changed_notice()Outputs a warning when some privacy info has changed.
- _policy_page_updated()Updates the cached policy info when the policy page is updated.
- get_suggested_policy_text()Checks for updated, added or removed privacy policy information from plugins.
- notice()Adds a notice with a link to the guide when editing the privacy policy page.
- privacy_policy_guide()Outputs the privacy policy guide together with content from the theme and plugins.
- get_default_content()Returns the default suggested privacy policy content.
- add_suggested_content()Adds the suggested privacy policy text to the policy postbox.
Changelog
Introduced in 4.9.6. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-admin/includes/class-wp-privacy-policy-content.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.