WordPress at a glance
filter is not described

get_date_sql filter-hook . WP 3.7.0

Filters the date query WHERE clause.


add_filter( 'get_date_sql', 'filter_function_name_9907', 10, 2 );
function filter_function_name_9907( $where, $this ){
	// filter...

	return $where;
WHERE clause of the date query.
The WP_Date_Query instance.

Where the hook is called

wp-includes/date.php 559
return apply_filters( 'get_date_sql', $where, $this );

Where the hook is used (in WP core)

Does not used.