found_users_query filter-hook . WP 3.2.0
Filters SELECT FOUND_ROWS() query for the current WP_User_Query instance.
Usage
add_filter( 'found_users_query', 'filter_function_name_5723', 10, 2 ); function filter_function_name_5723( $sql, $this ){ // filter... return $sql; }
- $sql(string)
- The SELECT FOUND_ROWS() query for the current WP_User_Query.
- $this(WP_User_Query)
- The current WP_User_Query instance.
Changelog
Since 3.2.0 | Introduced. |
Since 5.1.0 | Added the $this parameter. |
Where the hook is called
found_users_query
wp-includes/class-wp-user-query.php 634
$found_users_query = apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()', $this );