Languages: English • network admin 日本語 (Add your language)
This Conditional Tag checks whether the current request is for a network admin screen (wp-admin/network). This is a boolean function, meaning it returns either TRUE or FALSE.
<?php is_network_admin(); ?>
This tag does not accept any parameters.
if ( is_network_admin() ) { echo "You are viewing a WordPress network administration page"; } else { echo "You are <em>not</em> viewing a WordPress network administration page"; }
is_network_admin() does not indicate whether the user is a super admin or has network administration rights.
Since: 3.1.0
is_network_admin() is located in wp-includes/load.php
.