Remove CachePress from admin toolbar
-
I’m trying to remove the “Purge SG Cache” link in the admin toolbar. I am using the function below which works for removing toolbar items from all other plugins but isn’t working for CachePress. Is there a different node ID that I should be using? I grabbed the ID from the toolbar item
ID.function my_remove_toolbar_items( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'SG_CachePress_Supercacher_Purge' ); } add_action( 'admin_bar_menu', 'my_remove_toolbar_items', 999 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove CachePress from admin toolbar’ is closed to new replies.