comment_feed_groupby filter-hookWP 2.2.0

Filters the GROUP BY clause of the comments feed query before sending.

Usage

add_filter( 'comment_feed_groupby', 'wp_kama_comment_feed_groupby_filter' );

/**
 * Function for `comment_feed_groupby` filter-hook.
 * 
 * @param string $cgroupby The GROUP BY clause of the query.
 *
 * @return string
 */
function wp_kama_comment_feed_groupby_filter( $cgroupby ){

	// filter...
	return $cgroupby;
}
$cgroupby(string)
The GROUP BY clause of the query.

Changelog

Since 2.2.0 Introduced.

Where the hook is called

WP_Query::get_posts()
comment_feed_groupby
wp-includes/class-wp-query.php 2788
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( $cgroupby, &$this ) );
wp-includes/class-wp-query.php 3384
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) );

Where the hook is used in WordPress

Usage not found.