WordPress at Your Fingertips
function is not described

WP_User_Search::query() public WP 2.1.0

Executes the user search query.

{} It's a method of the class: WP_User_Search{}

No Hooks.

Return

null. Nothing.

Usage

$WP_User_Search = new WP_User_Search();
$WP_User_Search->query();

Changelog

Since 2.1.0 Introduced.

Code of WP_User_Search::query() WP 5.8.2

public function query() {
	global $wpdb;

	$this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);

	if ( $this->results )
		$this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // No limit.
	else
		$this->search_errors = new WP_Error('no_matching_users_found', __('No users found.'));
}