found_users_query WordPress Filter Hook
The found_users_query hook is called after a WP_User_Query has been executed. It can be used to modify the query or return a different set of results.
apply_filters( 'found_users_query', string $sql , WP_User_Query $query ) #
Filters SELECT FOUND_ROWS() query for the current WP_User_Query instance.
Parameters
- $sql
(string)The SELECT FOUND_ROWS() query for the current WP_User_Query.
- $query
(WP_User_Query)The current WP_User_Query instance.
Source
Changelog
Version | Description |
---|---|
5.1.0 | Added the $this parameter. |
3.2.0 | Introduced. |