GC_Date_Query::is_first_order_clause()
最后更新于:2021-11-27 13:35:25
GC_Date_Query::is_first_order_clause( array$query)Determine whether this is a first-order clause.
参数
- $query
-
(array) (Required) Query clause.
响应
(bool) True if this is a first-order clause.
源文件
文件: gc-includes/class-gc-date-query.php
protected function is_first_order_clause( $query ) {
$time_keys = array_intersect( $this->time_keys, array_keys( $query ) );
return ! empty( $time_keys );
}