wphooks.info - wp_get_default_privacy_policy_content

wp_get_default_privacy_policy_content

(trunk - 5.1-alpha-44286)

*** New in trunk ***

The hook occurs in the following file:

wp-admin/includes/misc.php:
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
		 * Filters the default content suggested for inclusion in a privacy policy.
		 *
		 * @since 4.9.6
		 * @since 5.0.0 Added the `$strings`, `$description`, and `$blocks` parameters.
		 *
		 * @param $content     string The default policy content.
		 * @param $strings     array  An array of privacy policy content strings.
		 * @param $description bool   Whether policy descriptions should be included.
		 * @param $blocks      bool   Whether the content should be formatted for the block editor.
		 */
		return apply_filters( 'wp_get_default_privacy_policy_content', $content, $strings, $description, $blocks );
	}

	/**
	 * Add the suggested privacy policy text to the policy postbox.
	 *
	 * @since 4.9.6
	 */
	public static function add_suggested_content() {
		$content = self::get_default_content( true, false );