Jetpack for Super Admins only
-
I manage a multisite network and only want super admins to have access to Jetpack settings. I want to restrict individual site administrators from accessing Jetpack. Here’s what I’m trying now:
function remove_jetpack_menu() { if (!current_user_can('manage_network')) { remove_menu_page( 'jetpack' ); } } add_action('admin_menu', 'remove_jetpack_menu');
I’m able to remove many other admin menu pages using this same function and hook, but I can’t remove Jetpack.
I’ve also tried using the longer menu page slug. That didn’t work either:
remove_menu_page( 'admin.php?page=jetpack' );
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Jetpack for Super Admins only’ is closed to new replies.