• Resolved Alec Rust

    (@alecrust)


    Most plugins that add items to the WordPress Admin Bar, provide a way to disable them. WP Super Cache does not.

    None of the users of my WordPress site have any use for this permanent “Delete Cache” button that displays on every page. Cache is cleared when a post is published and that’s all we need.

    Please can you provide an option to disable this, or even a snippet I can add to functions.php?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not a perfect answer, but you can hide the Admin Bar for all users but admins by adding the following to wp-config.php:

    
    show_admin_bar(false);
    

    If you want to retain the Admin Bar, but just hide the “Delete Cache” link in it, I guess you could use this CSS:

    
    #wp-admin-bar-delete-cache {
    	display: none;
    }
    
    Plugin Contributor Mike Stott

    (@mikemayhem3030)

    Hi @alecrust

    Thanks for the feedback. I’ll mark this as resolved (since you have a workaround) and I’ve added this as a feature request for a future version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option to disable “Delete Cache” button in admin bar’ is closed to new replies.