On this page
do_action_ref_array( 'pre_user_query', WP_User_Query $query )
Fires after the WP_User_Query has been parsed, and before the query is executed.
Description
The passed WP_User_Query object contains SQL parts formed from parsing the given query.
Parameters
$queryWP_User_Query-
Current instance of WP_User_Query (passed by reference).
Source
File: wp-includes/class-wp-user-query.php. View all references
do_action_ref_array( 'pre_user_query', array( &$this ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_User_Query::prepare_query() wp-includes/class-wp-user-query.php | Prepares the query variables. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_user_query