Skip to content
Docs
Get RestroPress

Filter

rpress_privacy_policy_additional_collection

Updated
On this page

Filters the list of extra data items mentioned in the suggested privacy policy.

Runs on admin_init in rpress_register_privacy_policy_template(). Each string is output as a bullet after the sentence beginning 'Additionally we may also collect the following information'. Extensions can add the data they collect.

Parameters#

ParameterTypeDescription
$additional_collectionstring[]List of translated sentences.

Return value#

string[]. The list of sentences.

Example#

add_filter( 'rpress_privacy_policy_additional_collection', 'my_privacy_collection_items', 10, 1 );
function my_privacy_collection_items( $additional_collection ) {
	$additional_collection[] = __( 'Delivery instructions you enter at checkout.', 'my-plugin' );
	return $additional_collection;
}

Source#

Applied in:

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

See also#

Was this page helpful?