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.
Return
(mixed)
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |