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 ); 

Leave a Reply

Your email address will not be published. Required fields are marked *