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.


Top ↑

Source

File: wp-includes/class-wp-user-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0Added the $this parameter.
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.