I would like to be able to hide W3 Total Cache from non admins. How can I go about doing so?
The following code I tried implementing in my functions.php file does not work:
function hide_w3tc() {
if (!current_user_can('super_admin')) {
remove_submenu_page('admin.php?page=w3tc_dashboard');
}
}
add_action( 'admin_menu', 'hide_w3tc');