GC_Date_Query::get_sql()

最后更新于:2021-11-27 13:20:25

GC_Date_Query::get_sql()

Generate WHERE clause to be appended to a main query.

响应

(string) MySQL WHERE clause.

源文件

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

	public function get_sql() {
		$sql = $this->get_sql_clauses();

		$where = $sql['where'];

		/**
		 * Filters the date query WHERE clause.
		 *
		 * @since 3.7.0
		 *
		 * @param string        $where WHERE clause of the date query.
		 * @param GC_Date_Query $this  The GC_Date_Query instance.
		 */
		return apply_filters( 'get_date_sql', $where, $this );
	}