On this page
WP_Privacy_Policy_Content::add_suggested_content()
Add the suggested privacy policy text to the policy postbox.
Source
File: wp-admin/includes/class-wp-privacy-policy-content.php. View all references
public static function add_suggested_content() {
$content = self::get_default_content( false, false );
wp_add_privacy_policy_content( __( 'WordPress' ), $content );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Privacy_Policy_Content::get_default_content() wp-admin/includes/class-wp-privacy-policy-content.php | Return the default suggested privacy policy content. |
| wp_add_privacy_policy_content() wp-admin/includes/plugin.php | Declares a helper function for adding content to the Privacy Policy Guide. |
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
Changelog
| Version | Description |
|---|---|
| 4.9.6 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_privacy_policy_content/add_suggested_content