WordPress at Your Fingertips
function is not described

WP_User_Search::__construct() public WP 2.1.0

PHP5 Constructor - Sets up the object properties.

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

No Hooks.

Return

WP_User_Search.

Usage

$WP_User_Search = new WP_User_Search();
$WP_User_Search->__construct( $search_term, $page, $role );
$search_term(string)
Search terms string.
Default: ''
$page(int)
Page ID.
Default: ''
$role(string)
Role name.
Default: ''

Changelog

Since 2.1.0 Introduced.

Code of WP_User_Search::__construct() WP 5.8.2

function __construct( $search_term = '', $page = '', $role = '' ) {
	_deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' );

	$this->search_term = wp_unslash( $search_term );
	$this->raw_page = ( '' == $page ) ? false : (int) $page;
	$this->page = ( '' == $page ) ? 1 : (int) $page;
	$this->role = $role;

	$this->prepare_query();
	$this->query();
	$this->do_paging();
}