Core Class
View Source on Trac ↗
Core Class
WP_Privacy_Policy_Content
class WP_Privacy_Policy_Content
// Constructor: function Object() { [native code] } WP_Privacy_Policy_Content class.
Methods 10 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor |
| add() void | Adds content to the postbox shown when editing the privacy policy.
Parameters: $plugin_name: mixed, $policy_text: mixed |
| text_change_check() void | Performs a quick check to determine whether any privacy info has changed. |
| policy_text_changed_notice() void | Outputs a warning when some privacy info has changed. |
| _policy_page_updated() void | Updates the cached policy info when the policy page is updated.
Parameters: $post_id: mixed |
| get_suggested_policy_text() array | Checks for updated, added or removed privacy policy information from plugins. |
| notice() void | Adds a notice with a link to the guide when editing the privacy policy page.
Parameters: $post: mixed |
| privacy_policy_guide() void | Outputs the privacy policy guide together with content from the theme and plugins. |
| get_default_content() string | Returns the default suggested privacy policy content.
Parameters: $description: mixed, $blocks: mixed |
| add_suggested_content() void | Adds the suggested privacy policy text to the policy postbox. |
Properties
| Property / Type | Description |
|---|---|
| $policy_content mixed public | No description available. |
Class Information
Since Version
4.9.6
Source File
wp-admin/includes/class-wp-privacy-policy-content.php
Advertisement