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

wp_get_default_privacy_policy_content WordPress Hook

The wp_get_default_privacy_policy_content hook is used to get the default content for the WordPress privacy policy. This hook is called by the wp_privacy_policy_content filter.

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.


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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Use wp_add_privacy_policy_content() instead.
5.0.0Added the $strings, $description, and $blocks parameters.
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.