WP_Date_Query::get_sql_for_subquery()protectedWP 3.7.0

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 6.5.2

protected function get_sql_for_subquery( $query ) {
	return $this->get_sql_for_clause( $query, '' );
}