WP_User_Query::__construct() WordPress Method
The WP_User_Query::__construct() method is used to instantiate a new WP_User_Query object. This object can then be used to query the WordPress user database.
WP_User_Query::__construct( null|string|array $query = null ) #
PHP5 constructor.
Parameters
- $query
(null|string|array)(Optional) The query variables.
Default value: null
Source
File: wp-includes/class-wp-user-query.php
public function __construct( $query = null ) { if ( ! empty( $query ) ) { $this->prepare_query( $query ); $this->query(); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |