GC_Date_Query::get_sql_for_subquery()

最后更新于:2021-11-27 13:32:26

GC_Date_Query::get_sql_for_subquery( array$query)

Turns a single date clause into pieces for a WHERE clause.

参数

$query

(array) (Required) Date query arguments.

响应

(array) Array containing JOIN and WHERE SQL clauses to append to the main query.

  • ‘join’
    (string) SQL fragment to append to the main JOIN clause.
  • ‘where’
    (string) SQL fragment to append to the main WHERE clause.

源文件

文件: gc-includes/class-gc-date-query.php

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