Title: wp_get_default_privacy_policy_content
Published: October 5, 2018
Last modified: August 20, 2026

---

# apply_filters_deprecated( ‘wp_get_default_privacy_policy_content’, string $content, string[] $strings, bool $description, bool $blocks )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#changelog)

This hook has been deprecated since 5.7.0. Use wp_add_privacy_policy_content() instead.

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#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](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#source)󠁿

    ```php
    return apply_filters_deprecated(
    	'wp_get_default_privacy_policy_content',
    	array( $content, $strings, $description, $blocks ),
    	'5.7.0',
    	'wp_add_privacy_policy_content()'
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-privacy-policy-content.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/class-wp-privacy-policy-content.php#L695)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-privacy-policy-content.php#L695-L700)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Privacy_Policy_Content::get_default_content()](https://developer.wordpress.org/reference/classes/wp_privacy_policy_content/get_default_content/)`wp-admin/includes/class-wp-privacy-policy-content.php` |

Returns the default suggested privacy policy content.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_get_default_privacy_policy_content/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.7.0](https://developer.wordpress.org/reference/since/5.7.0/) | Deprecated. Use [wp_add_privacy_policy_content()](https://developer.wordpress.org/reference/functions/wp_add_privacy_policy_content/) instead. | 
| [5.0.0](https://developer.wordpress.org/reference/since/5.0.0/) | Added the `$strings`, `$description`, and `$blocks` parameters. | 
| [4.9.6](https://developer.wordpress.org/reference/since/4.9.6/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_get_default_privacy_policy_content%2F)
before being able to contribute a note or feedback.