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_2050', 10, 2 );
function filter_function_name_2050( $where, $this ){
	// filter...

	return $where;
}
$where(string)
WHERE clause of the date query.
$this(WP_Date_Query)
The WP_Date_Query instance.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

WP_Date_Query::get_sql()
get_date_sql
wp-includes/class-wp-date-query.php 560
return apply_filters( 'get_date_sql', $where, $this );

Where in WP core the hook is used WordPress

Usage not found.