WordPress.org

Support

Support » Plugins and Hacks » WPMU Removing Performance Menu

WPMU Removing Performance Menu

Viewing 1 replies (of 1 total)
  • To remove the menu from the dashboard use the following code:

    add_action( 'admin_menu', 'my_remove_menus', 999 );
    add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );
    
    //Remove the dashboard menu:
    function my_remove_menus() {
    	remove_menu_page( 'w3tc_dashboard' );
    }
    
    //Remove the button from the adminbar/toolbar:
    function wps_admin_bar() {
        global $wp_admin_bar;
    $wp_admin_bar->remove_menu('w3tc');
    }

    This works for me. Of course you will need to have a plugin to call these functions. I recommend just make a plugin to call stuff like this for you…

    This is my first time on WP support so if I did something wrong feel free to tell me.

Viewing 1 replies (of 1 total)
  • The topic ‘WPMU Removing Performance Menu’ is closed to new replies.