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

PHP5 constructor.


Parameters

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

Default: null


Top ↑

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();
	}
}


Top ↑

Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

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