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.
Метод класса: WP_Date_Query{}
Хуков нет.
Возвращает
Массив
. Array containing JOIN and WHERE SQL clauses to append to the main query.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_sql_for_subquery( $query );
- $query(массив) (обязательный)
- Date query arguments.
Список изменений
С версии 3.7.0 | Введена. |
Код WP_Date_Query::get_sql_for_subquery() WP Date Query::get sql for subquery WP 6.8
protected function get_sql_for_subquery( $query ) { return $this->get_sql_for_clause( $query, '' ); }