Constructor.
Parameters
$query
null|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
Version | Description |
---|---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.