posts_groupby_request
Filters the GROUP BY clause of the query.
For use by caching plugins.
Использование
add_filter( 'posts_groupby_request', 'wp_kama_posts_groupby_request_filter' );
/**
* Function for `posts_groupby_request` filter-hook.
*
* @param string $groupby The GROUP BY clause of the query.
*
* @return string
*/
function wp_kama_posts_groupby_request_filter( $groupby ){
// filter...
return $groupby;
}
- $groupby(строка)
- The GROUP BY clause of the query.
Список изменений
| С версии 2.5.0 | Введена. |
Где вызывается хук
posts_groupby_request
wp-includes/class-wp-query.php 3069
$groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) );