Skip to content
Docs
Get RestroPress

Filter

rpress_privacy_policy_content

Updated
On this page

Filters the suggested privacy policy text that RestroPress registers.

Runs on admin_init in rpress_register_privacy_policy_template(). The string is the opening paragraph and list of the RestroPress section added to the WordPress privacy policy guide; it is passed through wp_kses_post(). The additional collection items are appended after it.

Parameters#

ParameterTypeDescription
$contentstringThe default suggested policy text.

Return value#

string. The suggested policy text.

Example#

add_filter( 'rpress_privacy_policy_content', 'my_privacy_policy_content', 10, 1 );
function my_privacy_policy_content( $content ) {
	return $content . "\n" . __( 'Order data is kept for seven years for tax purposes.', 'my-plugin' );
}

Source#

Applied in:

  • includes/privacy-functions.php (line 25), in rpress_register_privacy_policy_template()

See also#

Was this page helpful?