• Resolved VannDigital

    (@vdn-staff)


    This might’ve been asked before but is there a way I can disable the “Delete Cache” button from the admin bar???

Viewing 1 replies (of 1 total)
  • Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @vdn-staff,

    There is no official support for this. May I ask what the use-case is? Do you want to hide it from specific users?

    Right now, the Delete Cache button is only shown for users with the “delete_others_posts” permission. You could use that to control who can and cannot see the button.

    If you would like to just hide the button for cosmetic reasons, you could do so using some custom CSS:

    #wp-admin-bar-delete-cache {
      display: none;
    }

    However, this will not prevent advanced users from removing the custom CSS and accessing the button.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable “Delete Cache” Button’ is closed to new replies.