WP_User_Query::__construct
Constructor.
Method of the class: WP_User_Query{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_User_Query = new WP_User_Query(); $WP_User_Query->__construct( $query );
- $query(null|string|array)
- The query variables. See WP_User_Query::prepare_query() for information on accepted arguments.
Default:null
Changelog
| Since 3.1.0 | Introduced. |
WP_User_Query::__construct() WP User Query:: construct code WP 7.0
public function __construct( $query = null ) {
if ( ! empty( $query ) ) {
$this->prepare_query( $query );
$this->query();
}
}