• Resolved wpneo7

    (@wpneo7)


    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 ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Thread Starter wpneo7

    (@wpneo7)

    Code provided by the user is not working, Adding it into theme’s 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’);

    Thread Starter wpneo7

    (@wpneo7)

    Replaced the code with single quotes and it worked perfectly 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to hide LScache button’ is closed to new replies.