comment_feed_limits filter-hookWP 2.8.0

Filters the LIMIT clause of the comments feed query before sending.

Usage

add_filter( 'comment_feed_limits', 'wp_kama_comment_feed_limits_filter' );

/**
 * Function for `comment_feed_limits` filter-hook.
 * 
 * @param string $climits The JOIN clause of the query.
 *
 * @return string
 */
function wp_kama_comment_feed_limits_filter( $climits ){

	// filter...
	return $climits;
}
$climits(string)
The JOIN clause of the query.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

WP_Query::get_posts()
comment_feed_limits
wp-includes/class-wp-query.php 2808
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
wp-includes/class-wp-query.php 3392
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );

Where the hook is used in WordPress

Usage not found.