Start a project

Add / Change Services Filter

If you want to reorder, rename or change the icon for the items in the privacy center you can use the following filter:

wordpress_gdpr_services

Description

apply_filters('wordpress_gdpr_services', $privacyCenterItems);

One Service Array consists of:

'id'
'name'
'cookies'
'deactivatable'
'head_script'
'body_script'
'adsense'

Example Use

// Change Array of Items
function my_custom_services( $services ) {
$services = 'test';
    return $services;
};
// add the filter
add_filter( 'wordpress_gdpr_services', 'my_custom_services', 10, 1 );