WP_User_Query::set() WordPress Method
The WP_User_Query::set() method is used to modify the query used to fetch users. The query can be modified by passing in an array of arguments to the method. These arguments can be used to change the fields that are returned, the order in which the users are returned, and the number of users to return.
WP_User_Query::set( string $query_var, mixed $value ) #
Sets query variable.
Contents
Parameters
- $query_var
(string)(Required)Query variable key.
- $value
(mixed)(Required)Query variable value.
Source
File: wp-includes/class-wp-user-query.php
public function set( $query_var, $value ) { $this->query_vars[ $query_var ] = $value; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |