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)


Top ↑

Source

File: wp-admin/includes/deprecated.php

	function is_search() {
		if ( $this->search_term )
			return true;
		return false;
	}

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