comment_feed_groupby filter-hook . WP 2.2.0
Filters the GROUP BY clause of the comments feed query before sending.
Usage
add_filter( 'comment_feed_groupby', 'filter_function_name_7860', 10, 2 ); function filter_function_name_7860( $cgroupby, $this ){ // filter... return $cgroupby; }
- $cgroupby(string)
- The GROUP BY clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Changelog
Since 2.2.0 | Introduced. |
Where the hook is called
comment_feed_groupby
wp-includes/class-wp-query.php 2634
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( $cgroupby, &$this ) );
wp-includes/class-wp-query.php 3056
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) );