apply_filters( 'bp_found_user_query', string $value, BP_User_Query $this )

Filters the found user SQL statements before query.

Description

If "sql_calc_found_rows" is the provided count_total query var then the value will be "SELECT FOUND_ROWS()". Otherwise it will use a "SELECT COUNT()" query statement.

Parameters

$value

SQL statement to select FOUND_ROWS().

$this

Current BP_User_Query instance.

Source

File: bp-core/classes/class-bp-user-query.php

Changelog

Changelog
Version Description
BuddyPress 1.7.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.