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)
Source
File: wp-admin/includes/deprecated.php
public function get_results() { return (array) $this->results; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |