WP_User_Query::get() WordPress Method

The WP_User_Query::get() method is used to retrieve a list of users from a WordPress database. This method accepts a number of arguments, which can be used to specify the criteria used to select users from the database.

WP_User_Query::get( string $query_var ) #

Retrieves query variable.


Parameters

$query_var

(string)(Required)Query variable key.


Top ↑

Return

(mixed)


Top ↑

Source

File: wp-includes/class-wp-user-query.php

	public function get( $query_var ) {
		if ( isset( $this->query_vars[ $query_var ] ) ) {
			return $this->query_vars[ $query_var ];
		}

		return null;
	}


Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.