Skip to content
Public Ticket #20860

How to remove "clear critical css cache" from admin bar?

Conversation thread

pierreto007 replied

Customer Reply

I try to limit plugin of my website and try to delete some, but it's not easy to find solution, because I try to resolve speed problem.


Then I won't use that, hope you'll add an option to remove it in next update.

PenciDesign Supporter replied

Staff Reply

Hi,

Please install the Code Snippet plugin, then create a new snippet with the following content:

function cs_remove_cachebtn( $wp_admin_bar ) {
    $wp_admin_bar->remove_node( 'pencilazy-clearcache' );  
}
add_action( 'admin_bar_menu', 'cs_remove_cachebtn', 999 );

Regards,
PenciDesign.



pierreto007 started the conversation

Conversation Start

Hi,

I actually use Query Monitor plugin to try resolve speed problem and my Admin Bar is full.

The menu "clear critical css cache" it not very usefull, and very long, and is accessible via the customiser, then I don't need it in Admin bar.

Thanks

Want to join this conversation or access attachments? Sign in first.