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

In this article

Constructor.

Parameters

$querynull|string|arrayoptional
The query variables.
See WP_User_Query::prepare_query() for information on accepted arguments.

Default:null

Source

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

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.