Reorder / Rename / Change Privacy Center Items 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_privacy_center_items

Description

apply_filters('wordpress_gdpr_privacy_center_items', $privacyCenterItems);

Example Use

// Change Array of Items
function my_custom_items( $privacyCenterItems ) { 
    
    $privacyCenterItems = 'my-custom-icon';
    
    return $privacyCenterItems; 
}; 
         
// add the filter 
add_filter( 'wordpress_gdpr_privacy_center_items', 'my_custom_items', 10, 1 ); 

Leave a Reply

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