Turns a single date clause into pieces for a WHERE clause.
A wrapper for get_sql_for_clause(), included here for backward compatibility while retaining the naming convention across Query classes.
$queryarrayrequired
join string[]where string[]protected function get_sql_for_subquery( $query ) {
return $this->get_sql_for_clause( $query, '' );
}
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_date_query/get_sql_for_subquery