Wordpress LScache Plugin: How to hide LScache button
Last Updated on: Wed, 15 Apr 2026 00:00:02 The LScache functions should remains active but want to hide LSCache Admin tool bar icon in WordPress backend for all users -> Image Using a function with mu-plugins file remove_menu_page(litespeed) We were able to hide the LiteSpeed Cache on the left side WP dashboard, however we still see the LSCache icon at the top section (admin menu bar) If we add the remove administrators capability function code in mu-plugins file -> Link then default wp setting menu goes missing and on removing the code the /wp-admin/options-general.php and other plugins Settings options throws error Sorry, you are not allowed to access this page. Can you guys please assist how to hide the LSCache icon at the top section (admin menu bar), ensuring other WP options/settings working as it is ? Hi, Have you checked this ? https://wordpress.org/support/topic/hide-diamond-menu-from-toolbar/ Best regards, Code provided by the user is not working, Adding it into themes functions.php file is not feasible option, what if user switches the theme. With MU-plugin file, we tested with another test plugin, 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
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference