WP_User_Search::__construct( string $search_term = '', int $page = '', string $role = '' )
PHP5 Constructor – Sets up the object properties.
Parameters
- $search_term
-
(Optional) Search terms string.
Default value: ''
- $page
-
(Optional) Page ID.
Default value: ''
- $role
-
(Optional) Role name.
Default value: ''
Return
Source
File: wp-admin/includes/deprecated.php
function __construct( $search_term = '', $page = '', $role = '' ) {
_deprecated_function( __FUNCTION__, 'WP-3.1.0', 'WP_User_Query' );
$this->search_term = wp_unslash( $search_term );
$this->raw_page = ( '' == $page ) ? false : (int) $page;
$this->page = (int) ( '' == $page ) ? 1 : $page;
$this->role = $role;
$this->prepare_query();
$this->query();
$this->do_paging();
}
Changelog
Version | Description |
---|---|
WP-2.1.0 | Introduced. |