W3cubDocs

/WordPress

apply_filters( '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.

Parameters

$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.

Source

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

View on Trac

Changelog

Version Description
5.0.0 Added the $strings, $description, and $blocks parameters.
4.9.6 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content