WP_User_Query::__construct()publicWP 3.1.0

Constructor.

Method of the class: WP_User_Query{}

No Hooks.

Return

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() code WP 6.5.2

public function __construct( $query = null ) {
	if ( ! empty( $query ) ) {
		$this->prepare_query( $query );
		$this->query();
	}
}