How to hide LScache button
-
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 administrator’s 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 ?
The topic ‘How to hide LScache button’ is closed to new replies.