On this page
apply_filters_deprecated( 'wp_get_default_privacy_policy_content', string $content, string[] $strings, bool $description, bool $blocks )
This hook has been deprecated. Use wp_add_privacy_policy_content() instead.
Filters the default content suggested for inclusion in a privacy policy.
Parameters
$contentstring-
The default policy content.
$stringsstring[]-
An array of privacy policy content strings.
$descriptionbool-
Whether policy descriptions should be included.
$blocksbool-
Whether the content should be formatted for the block editor.
Source
File: wp-admin/includes/class-wp-privacy-policy-content.php. View all references
return apply_filters_deprecated(
'wp_get_default_privacy_policy_content',
array( $content, $strings, $description, $blocks ),
'5.7.0',
'wp_add_privacy_policy_content()'
);
Related
Used By
| Used By | Description |
|---|---|
| WP_Privacy_Policy_Content::get_default_content() wp-admin/includes/class-wp-privacy-policy-content.php | Return the default suggested privacy policy content. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Use wp_add_privacy_policy_content() instead. |
| 5.0.0 | Added the $strings, $description, and $blocks parameters. |
| 4.9.6 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content