comment_feed_limits хук-фильтр . WP 2.8.0
Filters the LIMIT clause of the comments feed query before sending.
Использование
add_filter( 'comment_feed_limits', 'filter_function_name_8746', 10, 2 ); function filter_function_name_8746( $climits, $this ){ // filter... return $climits; }
- $climits(строка)
- The JOIN clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
comment_feed_limits
wp-includes/class-wp-query.php 2654
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
wp-includes/class-wp-query.php 3064
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );