W3cubDocs

/WordPress

apply_filters( ‘get_date_sql’, string $where, WP_Date_Query $query )

Filters the date query WHERE clause.

Parameters

$wherestring
WHERE clause of the date query.
$queryWP_Date_Query
The WP_Date_Query instance.

Source

return apply_filters( 'get_date_sql', $where, $this );

Changelog

Version Description
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_date_sql