W3cubDocs

/WordPress

apply_filters( ‘found_users_query’, string $sql, WP_User_Query $query )

Filters SELECT FOUND_ROWS() query for the current WP_User_Query instance.

Parameters

$sqlstring
The SELECT FOUND_ROWS() query for the current WP_User_Query.
$queryWP_User_Query
The current WP_User_Query instance.

Source

$found_users_query = apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()', $this );

Changelog

Version Description
5.1.0 Added the $this parameter.
3.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/found_users_query