WordPress at Your Fingertips
filter is not described

posts_where filter-hook . WP 1.5.0

Filters the WHERE clause of the query.


add_filter( 'posts_where', 'filter_function_name_2168', 10, 2 );
function filter_function_name_2168( $where, $query ){
	// filter...

	return $where;
The WHERE clause of the query.
The WP_Query instance (passed by reference).

Where the hook is called

wp-includes/class-wp-query.php 2568
$where = apply_filters_ref_array( 'posts_where', array( $where, &$this ) );

Where in WP core the hook is used WordPress

Usage not found.