get_date_sql filter-hook . WP 3.7.0
Filters the date query WHERE clause.
Usage
add_filter( 'get_date_sql', 'filter_function_name_190', 10, 2 ); function filter_function_name_190( $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
get_date_sql
wp-includes/class-wp-date-query.php 560
return apply_filters( 'get_date_sql', $where, $this );