WP_Date_Query::get_sql_for_subquery()
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.
Method of the class: WP_Date_Query{}
No Hooks.
Return
Array
. Array containing JOIN and WHERE SQL clauses to append to the main query.
Usage
// protected - for code of main (parent) or child class $result = $this->get_sql_for_subquery( $query );
- $query(array) (required)
- Date query arguments.
Changelog
Since 3.7.0 | Introduced. |
WP_Date_Query::get_sql_for_subquery() WP Date Query::get sql for subquery code WP 6.5.2
protected function get_sql_for_subquery( $query ) { return $this->get_sql_for_clause( $query, '' ); }