WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I came across the following article W3 Total Cache - How to disable “Performance” menu under multisite?

However on testing it with the latest version of WordPress 3.7 and W3 Total Cache v0.9.3 it seems to no longer work.

How can I update the code from the link above so it works

I also have the following code which works it removes the “Performance” from the admin top bar

//Remove Performance
function ds_w3tc_remove_adminbar() {
   global $wp_admin_bar;
     if ( ! is_super_admin() ) {
add_action( 'admin_bar_menu','ds_w3tc_remove_adminbar',999);
share|improve this question

closed as off-topic by Pieter Goosen, ialocin, birgire, Johannes Pille, gmazzap Aug 20 '14 at 12:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Pieter Goosen, ialocin, birgire, Johannes Pille, gmazzap
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

Please try to remove it with the menu slug 'w3tc_dashboard' instead of 'w3tc_general':

i.e. use

remove_menu_page( 'w3tc_dashboard' );

instead of

remove_menu_page( 'w3tc_general' );

in the linked code example.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.