Uses
Uses | Description |
---|---|
wp-includes/class-wp-date-query.php: WP_Date_Query::get_sql_for_query() | Generate SQL clauses for a single query array. |
Generate SQL clauses to be appended to a main query.
Called by the public WP_Date_Query::get_sql(), this method is abstracted out to maintain parity with the other Query classes.
(array) Array containing JOIN and WHERE SQL clauses to append to the main query.
File: wp-includes/class-wp-date-query.php
protected function get_sql_clauses() { $sql = $this->get_sql_for_query( $this->queries ); if ( ! empty( $sql['where'] ) ) { $sql['where'] = ' AND ' . $sql['where']; } return $sql; }
Version | Description |
---|---|
4.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_date_query/get_sql_clauses