WP_User_Search::is_search() WordPress Method
The WP_User_Search::is_search() method is used to check if a user search is being performed. This is useful for determining if you need to do a custom search or if the default WordPress user search functionality can be used.
WP_User_Search::is_search() #
Whether there are search terms.
Return
(bool)
Source
File: wp-admin/includes/deprecated.php
function is_search() { if ( $this->search_term ) return true; return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |