Recent

crp_query_posts_groupbyfilter

crp_query_posts_groupby

Filters the GROUP BY clause of the CRP_Query.

Type: filter
Since: 3.0.0
Source: includes/class-crp-core-query.php line 1108

Changelog

Version Description
4.0.0 Added $instance
3.0.0 Introduced.

Parameters

Type Name Description
string $groupby The GROUP BY clause of the query.
\WP_Query|\CRP_Query $query The WP_Query or CRP_Query instance.
CRP_Core_Query $instance The CRP_Core_Query instance.

Usage

add_filter( 'crp_query_posts_groupby', function($groupby, $query, $instance) {
    // ...
    return $groupby;
} );