EP_WP_Query_Integration::filter_found_posts_query PHP Method

filter_found_posts_query() public method

Remove the found_rows from the SQL Query
Since: 0.9
public filter_found_posts_query ( string $sql, object $query ) : string
$sql string
$query object
return string
    public function filter_found_posts_query($sql, $query)
    {
        if (!ep_elasticpress_enabled($query) || apply_filters('ep_skip_query_integration', false, $query)) {
            return $sql;
        }
        return '';
    }