WP_Date_Query::is_first_order_clause( array $query )
Determine whether this is a first-order clause.
Description Description
Checks to see if the current clause has any time-related keys. If so, it’s first-order.
Parameters Parameters
- $query
-
(array) (Required) Query clause.
Return Return
(bool) True if this is a first-order clause.
Source Source
File: wp-includes/class-wp-date-query.php
protected function is_first_order_clause( $query ) { $time_keys = array_intersect( $this->time_keys, array_keys( $query ) ); return ! empty( $time_keys ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |