[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
WP_Privacy_Policy_Content class.
File Size: | 706 lines (33 kb) |
Included or required: | 5 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct() X-Ref |
Constructor |
add( $plugin_name, $policy_text ) X-Ref |
Adds content to the postbox shown when editing the privacy policy. 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()`. param: string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy. param: string $policy_text The suggested content for inclusion in the policy. |
text_change_check() X-Ref |
Performs a quick check to determine whether any privacy info has changed. |
policy_text_changed_notice() X-Ref |
Outputs a warning when some privacy info has changed. |
_policy_page_updated( $post_id ) X-Ref |
Updates the cached policy info when the policy page is updated. param: int $post_id The ID of the updated post. |
get_suggested_policy_text() X-Ref |
Checks for updated, added or removed privacy policy information from plugins. Caches the current info in post_meta of the policy page. return: array The privacy policy text/information added by core and plugins. |
notice( $post = null ) X-Ref |
Adds a notice with a link to the guide when editing the privacy policy page. param: WP_Post|null $post The currently edited post. Default null. |
privacy_policy_guide() X-Ref |
Outputs the privacy policy guide together with content from the theme and plugins. |
get_default_content( $description = false, $blocks = true ) X-Ref |
Returns the default suggested privacy policy content. return: string The default policy content. param: bool $description Whether to include the descriptions under the section headings. Default false. param: bool $blocks Whether to format the content for the block editor. Default true. |
add_suggested_content() X-Ref |
Adds the suggested privacy policy text to the policy postbox. |
Generated : Sat Nov 23 08:20:01 2024 | Cross-referenced by PHPXref |