comment_feed_orderby хук-фильтр . WP 2.8.0
Filters the ORDER BY clause of the comments feed query before sending.
Использование
add_filter( 'comment_feed_orderby', 'filter_function_name_3252', 10, 2 ); function filter_function_name_3252( $corderby, $this ){ // filter... return $corderby; }
- $corderby(строка)
- The ORDER BY clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
comment_feed_orderby
wp-includes/class-wp-query.php 2644
$corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) );
wp-includes/class-wp-query.php 3060
$corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) );