Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 36988

mannski on "[Plugin: Jetpack by WordPress.com] Jetpack for Super Admins only"

$
0
0

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' );

http://wordpress.org/plugins/jetpack/


Viewing all articles
Browse latest Browse all 36988

Trending Articles



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