is_plugin_page

Definition:
function is_plugin_page() {}

Is the current admin page generated by a plugin?

Source code

function is_plugin_page() {

	_deprecated_function( __FUNCTION__, '3.1'  );



	global $plugin_page;



	if ( isset($plugin_page) )

		return true;



	return false;

}

9906

is_plugin_inactive

Definition:
function is_plugin_inactive( $plugin ) {}

Check whether the plugin is inactive.
Reverse of is_plugin_active(). Used as a callback.

Parameters

  • string $plugin: Base plugin path from plugins directory.

Return values

returns:True if inactive. False if active.

Source code

function is_plugin_inactive( $plugin ) {

	return ! is_plugin_active( $plugin );

}

9904

is_network_admin

Definition:
function is_network_admin() {}

Whether the current request is for a network admin screen /wp-admin/network/
Does not inform on whether the user is a network admin! Use capability checks to tell if the user should be accessing a section or not.

Return values

returns:True if inside WordPress network administration pages.

Source code

function is_network_admin() {

	if ( defined( 'WP_NETWORK_ADMIN' ) )

		return WP_NETWORK_ADMIN;

	return false;

}

9893

is_blog_user

Definition:
function is_blog_user( $blog_id = 0 ) {}

Checks if the current user belong to a given blog.

Parameters

  • int $blog_id: Blog ID

Return values

returns:True if the current users belong to $blog_id, false if not.

Source code

function is_blog_user( $blog_id = 0 ) {

	global $wpdb;



	$current_user = wp_get_current_user();

	if ( !$blog_id )

		$blog_id = $wpdb->blogid;



	$cap_key = $wpdb->base_prefix . $blog_id . '_capabilities';



	if ( is_array($current_user->$cap_key) && in_array(1, $current_user->$cap_key) )

		return true;



	return false;

}

9868

is_blog_admin

Definition:
function is_blog_admin() {}

Whether the current request is for a blog admin screen /wp-admin/
Does not inform on whether the user is a blog admin! Use capability checks to tell if the user should be accessing a section or not.

Return values

returns:True if inside WordPress network administration pages.

Source code

function is_blog_admin() {

	if ( defined( 'WP_BLOG_ADMIN' ) )

		return WP_BLOG_ADMIN;

	return false;

}

9865