Warning: This hook has been deprecated. Use wp_add_privacy_policy_content() instead.

apply_filters_deprecated( 'wp_get_default_privacy_policy_content', string $content, string[] $strings, bool $description, bool $blocks )

Filters the default content suggested for inclusion in a privacy policy.


$content string
The default policy content.
$strings string[]
An array of privacy policy content strings.
$description bool
Whether policy descriptions should be included.
$blocks bool
Whether the content should be formatted for the block editor.

Top ↑


File: wp-admin/includes/class-wp-privacy-policy-content.php. View all references

return apply_filters_deprecated(
	array( $content, $strings, $description, $blocks ),

Top ↑


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.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.