On this page
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
File: wp-includes/class-wp-date-query.php. View all references
return apply_filters( 'get_date_sql', $where, $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Date_Query::get_sql() wp-includes/class-wp-date-query.php | Generates WHERE clause to be appended to a main query. |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_date_sql