Languages: English • Italiano • Reference/is_super_admin 日本語 (Add your language)
Determine if user is a network (super) admin. Will also check if user is admin if network mode is disabled.
<?php is_super_admin( $user_id ); ?>
<?php //Removes the "Edit" menu for users who are not Super Admins of a multisite network if ( !is_super_admin() ) { add_action( 'admin_init', 'my_remove_edit_menu' ); } function my_remove_edit_menu() { remove_menu_page('edit.php'); } ?>
Since: WordPress 3.0.0
is_super_admin()
is located in wp-includes/capabilities.php
.