WP_User_Search
- Since
- 2.1.0
- Source
wp-admin/includes/deprecated.php:339
WordPress User Search class.
Hooks fired · 1
Every hook that fires from inside WP_User_Search, in the order it appears in the class, grouped by the method that fires it.
WP_User_Search::prepare_query()
- do_action( pre_user_search )action line 560
Properties · 16
$resultsmixedpublic- }
$search_termstringpublic- }
$pageintpublic- Page number.
$rolestringpublic- Role name that users have.
$raw_pageint|boolpublic- Raw page number.
$users_per_pageintpublic- Amount of users to display per page.
$first_userintpublic- }
$last_userintpublic- }
$query_limitstringpublic- }
$query_orderbystringpublic- }
$query_fromstringpublic- }
$query_wherestringpublic- }
$total_users_for_queryintpublic- }
$too_many_total_usersboolpublic- }
$search_errorsWP_Errorpublic- }
$paging_textstringpublic- }
Methods · 10
- __construct()PHP5 Constructor - Sets up the object properties.
- WP_User_Search()PHP4 Constructor - Sets up the object properties.
- prepare_query()Prepares the user search query (legacy).
- query()Executes the user search query.
- prepare_vars_for_template_usage()Prepares variables for use in templates.
- do_paging()Handles paging for the user search query.
- get_results()Retrieves the user search query results.
- page_links()Displaying paging text.
- results_are_paged()Whether paging is enabled.
- is_search()Whether there are search terms.
Source
class WP_User_Search { /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var mixed */ var $results; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var string */ var $search_term; /** * Page number. * * @since 2.1.0 * @access private * @var int */ var $page; /** * Role name that users have. * * @since 2.5.0 * @access private * @var string */ var $role; /** * Raw page number. * * @since 2.1.0 * @access private * @var int|bool */ var $raw_page; /** * Amount of users to display per page. * * @since 2.1.0 * @access public * @var int */ var $users_per_page = 50; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var int */ var $first_user; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var int */ var $last_user; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var stringHistory
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
3.1.0
Deprecated. Use WP_User_Queryfrom the docblock
2.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-admin/includes/deprecated.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.