pre_user_query WordPress Action Hook
The pre_user_query hook is an action hook that is called before a user query is executed. This hook can be used to modify the query parameters before the query is run.
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
- $query
(WP_User_Query)Current instance of WP_User_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |