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