is_main_query

Definition:
function is_main_query() {}

Is the query the main query?

Source code

	function is_main_query() {

		global $wp_the_query;

		return $wp_the_query === $this;

	}

16629

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 ) {

	_deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' );



	return is_user_member_of_blog( get_current_user_id(), $blog_id );

}

16608

index_rel_link

Definition:
function index_rel_link() {}

Display relational link for the site index.

Source code

function index_rel_link() {

	_deprecated_function( __FUNCTION__, '3.3' );



	echo get_index_rel_link();

}

16569

get_user_metavalues

Definition:
function get_user_metavalues($ids) {}

Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users

Parameters

  • array $ids: User ID numbers list.

Return values

returns:of arrays. The array is indexed by user_id, containing $metavalues object arrays.

Source code

function get_user_metavalues($ids) {

	_deprecated_function( __FUNCTION__, '3.3' );



	$objects = array();



	$ids = array_map('intval', $ids);

	foreach ( $ids as $id )

		$objects[$id] = array();



	$metas = update_meta_cache('user', $ids);



	foreach ( $metas as $id => $meta ) {

		foreach ( $meta as $key => $metavalues ) {

			foreach ( $metavalues as $value ) {

				$objects[$id][] = (object)array( 'user_id' => $id, 'meta_key' => $key, 'meta_value' => $value);

			}

		}

	}



	return $objects;

}

16510