WP_User_Search::get_results() WordPress Method

The WP_User_Search::get_results() method is used to search for users in the WordPress database. It accepts two parameters: a search string and an array of search fields. The search string is used to search the user_login, user_nicename, and user_email fields. The array of search fields can be used to specify which other fields should be searched.

WP_User_Search::get_results() #

Retrieves the user search query results.


Return

(array)


Top ↑

Source

File: wp-admin/includes/deprecated.php

	public function get_results() {
		return (array) $this->results;
	}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More