WP_User_Query::get()publicWP 3.5.0

Retrieves query variable.

Method of the class: WP_User_Query{}

No Hooks.

Return

Mixed.

Usage

$WP_User_Query = new WP_User_Query();
$WP_User_Query->get( $query_var );
$query_var(string) (required)
Query variable key.

Changelog

Since 3.5.0 Introduced.

WP_User_Query::get() code WP 6.1.1

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

	return null;
}