get_date_sql WordPress Filter Hook
The get_date_sql WordPress hook is used to retrieve the SQL code that is used to generate the date information for a given WordPress post. This hook is typically used by plugins and themes that need to customize the way the date information is displayed on a WordPress post.
apply_filters( 'get_date_sql', string $where , WP_Date_Query $query ) #
Filters the date query WHERE clause.
Parameters
- $where
(string)WHERE clause of the date query.
- $query
(WP_Date_Query)The WP_Date_Query instance.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |