Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19347

jdf2 on "[Plugin: W3 Total Cache] WPMU Removing Performance Menu"

$
0
0

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 all articles
Browse latest Browse all 19347

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>