Uses
Uses | Description |
---|---|
wp-includes/class-wp-user-query.php: WP_User_Query::prepare_query() | Prepare the query variables. |
wp-includes/class-wp-user-query.php: WP_User_Query::query() | Execute the query, with the current variables. |
PHP5 constructor.
(null|string|array) (Optional) The query variables.
Default value: null
File: wp-includes/class-wp-user-query.php
public function __construct( $query = null ) { if ( ! empty( $query ) ) { $this->prepare_query( $query ); $this->query(); } }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user_query/__construct