Generates SQL clauses to be appended to a main query.
Description
Called by the public WP_Date_Query::get_sql(), this method is abstracted out to maintain parity with the other Query classes.
Source
protected function get_sql_clauses() {
$sql = $this->get_sql_for_query( $this->queries );
if ( ! empty( $sql['where'] ) ) {
$sql['where'] = ' AND ' . $sql['where'];
}
return $sql;
}
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.