comment_feed_limits
Filters the LIMIT clause of the comments feed query before sending.
Использование
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(строка)
- The JOIN clause of the query.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
comment_feed_limits
wp-includes/class-wp-query.php 2759
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
wp-includes/class-wp-query.php 3323
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );