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