is_network_admin
Whether the current request is for the network administrative interface.
Description
is_network_admin();
e.g. /wp-admin/network/
Does not check if the user is an administrator; current_user_can(…)
for checking roles and capabilities.
Usage
if ( !function_exists( 'is_network_admin' ) ) { require_once ABSPATH . WPINC . '/load.php'; } // NOTICE! Understand what this does before running. $result = is_network_admin();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/load.php
- function is_network_admin() {
- if ( isset( $GLOBALS['current_screen'] ) )
- return $GLOBALS['current_screen']->in_admin( 'network' );
- elseif ( defined( 'WP_NETWORK_ADMIN' ) )
- return WP_NETWORK_ADMIN;
- return false;
- }