posts_distinct
Filters the DISTINCT clause of the query.
Использование
add_filter( 'posts_distinct', 'wp_kama_posts_distinct_filter' ); /** * Function for `posts_distinct` filter-hook. * * @param string $distinct The DISTINCT clause of the query. * * @return string */ function wp_kama_posts_distinct_filter( $distinct ){ // filter... return $distinct; }
- $distinct(строка)
- The DISTINCT clause of the query.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
posts_distinct
wp-includes/class-wp-query.php 2974
$distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) );