wordpress / latest / classes / wp_user_query / __construct.html

WP_User_Query::__construct( null|string|array $query = null )

PHP5 constructor.

Parameters

$query null|string|array Optional
The query variables.

Default: null

Source

File: wp-includes/class-wp-user-query.php. View all references

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

Used By

Used By Description

Changelog

Version Description
3.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user_query/__construct