posts_groupby хук-фильтр . WP 2.0.0
Filters the GROUP BY clause of the query.
Использование
add_filter( 'posts_groupby', 'filter_function_name_5483', 10, 2 ); function filter_function_name_5483( $groupby, $this ){ // filter... return $groupby; }
- $groupby(строка)
- The GROUP BY clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.0.0 | Введена. |
Где вызывается хук
posts_groupby
wp-includes/class-wp-query.php 2708
$groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) );