comment_feed_where хук-фильтр . WP 2.2.0
Filters the WHERE clause of the comments feed query before sending.
Использование
add_filter( 'comment_feed_where', 'filter_function_name_8803', 10, 2 ); function filter_function_name_8803( $cwhere, $this ){ // filter... return $cwhere; }
- $cwhere(строка)
- The WHERE clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.2.0 | Введена. |
Где вызывается хук
comment_feed_where
wp-includes/class-wp-query.php 2624
$cwhere = apply_filters_ref_array( 'comment_feed_where', array( $cwhere, &$this ) );
wp-includes/class-wp-query.php 3053
$cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1'", &$this ) );