WP_User_Query::__construct()
PHP5 constructor.
Method of the class: WP_User_Query{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_User_Query = new WP_User_Query(); $WP_User_Query->__construct( $query );
- $query(null|string|array)
- The query variables.
Default: null
Changelog
Since 3.1.0 | Introduced. |
WP_User_Query::__construct() WP User Query:: construct code WP 6.1.1
public function __construct( $query = null ) { if ( ! empty( $query ) ) { $this->prepare_query( $query ); $this->query(); } }