posts_distinct filter-hook . WP 2.1.0
Filters the DISTINCT clause of the query.
Usage
add_filter( 'posts_distinct', 'filter_function_name_6333', 10, 2 ); function filter_function_name_6333( $distinct, $this ){ // filter... return $distinct; }
- $distinct(string)
- The DISTINCT clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
posts_distinct
wp-includes/class-wp-query.php 2740
$distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) );