posts_distinct_request хук-фильтрWP 2.5.0

Filters the DISTINCT clause of the query.

For use by caching plugins.

Использование

add_filter( 'posts_distinct_request', 'wp_kama_posts_distinct_request_filter' );

/**
 * Function for `posts_distinct_request` filter-hook.
 * 
 * @param string $distinct The DISTINCT clause of the query.
 *
 * @return string
 */
function wp_kama_posts_distinct_request_filter( $distinct ){

	// filter...
	return $distinct;
}
$distinct(строка)
The DISTINCT clause of the query.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

WP_Query::get_posts()
posts_distinct_request
wp-includes/class-wp-query.php 3102
$distinct = apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) );

Где используется хук в WordPress

Использование не найдено.