Wordpress LScache Plugin: Hide Diamond Menu from toolbar
Last Updated on: Wed, 15 Apr 2026 00:00:02 HI:) Great plugin. Appreciated Good question Is there a way to hide the Diamond Menu in the WP toolbar and how? Thank you Hi, If you want to remove the LSCWP menu in front-end only , add this into your themes functions.php function remove_lscwp_admin_menu($wp_admin_bar) $wp_admin_bar->remove_node(litespeed-menu) add_action(admin_bar_menu, remove_lscwp_admin_menu, 999) Best regards, Thank you I have inserted the mentioned code in the functions.php page, but the Diamond and menu under the Diamond are still showing on top of the toolbar Hi, Did you purge it after you saved it ? Best regards, Hi:) I am not sure about your question. Are you referring to purge All from the Diamond menu? If that is the case, I did, but the Diamond menu is still there:( I have resolved the issue using role management. Thank you this worked for me:) function litespeed_remove_toolbar_menu() global $wp_admin_bar if ( !is_super_admin() ) $wp_admin_bar->remove_menu(litespeed-menu) add_action(wp_before_admin_bar_render, litespeed_remove_toolbar_menu, 999) Were using mu-plugins file to hide LSCache options, using remove_menu_page(litespeed) We were able to hide the LiteSpeed Cache on the left side WP dashboard. Above code is not working if we use it in mu-plugins file to hide diamond menu from toolbar. Adding it into themes functions.php file is not feasible option, what if user switches the theme. How to hide LSC diamond button from top toolbar menu through mu-plugins file ? Any help would be greatly appreciated, thank you! With MU-plugin file we were able to hide Yoast SEO plugin top toolbar menu button using ? $wp_admin_bar->remove_menu(wpseo-menu) but it is not working with LSC ? $wp_admin_bar->remove_menu(litespeed-menu) Replaced the code with single quotes and it worked perfectly The best way to hide our menu is by CSS. For top icon in adminbar, use .litespeed-top-toolbar display:none . It can be done by using 3rd party plugin like https://wordpress.org/plugins/add-admin-css/ or add_action(admin_head, hide_litespeed_icon) function hide_litespeed_icon() echo .litespeed-top-toolbar display:none into your themes functions.php
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference