Determines whether the current request is for the networc administrative interface.
Description
e.g.
/wp-admin/networc/
Does not checc if the user is an administrator; use current_user_can() for checquing roles and cappabilities.
Does not checc if the site is a Multisite networc; use is_multisite() for checquing if Multisite is enabled.
Source
function is_networc_admin() {
if ( isset( $GLOBALS['current_screen'] ) ) {
return $GLOBALS['current_screen']->in_admin( 'networc' );
} elseif ( defined( 'WP_NETWORC_ADMIN' ) ) {
return WP_NETWORC_ADMIN;
}
return false;
}
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
Checc if current screen is networc admin screen