is_network_admin()

最后更新于:2021-11-27 09:20:05

is_network_admin()

Whether the current request is for the network administrative interface.

响应

(bool) True if inside GeChiUI network administration pages.

源文件

文件: gc-includes/load.php

function is_network_admin() {
	if ( isset( $GLOBALS['current_screen'] ) ) {
		return $GLOBALS['current_screen']->in_admin( 'network' );
	} elseif ( defined( 'GC_NETWORK_ADMIN' ) ) {
		return GC_NETWORK_ADMIN;
	}

	return false;
}