Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableMetaQuery::is_atomic
Checks whether a given meta_query clause is atomic or not (i.e. not nested).
Method of the class: OrdersTableMetaQuery{}
No Hooks.
Returns
true|false. TRUE if atomic, FALSE otherwise.
Usage
// private - for code of main (parent) class only $result = $this->is_atomic( $arg ): bool;
- $arg(array) (required)
- The meta_query clause.
OrdersTableMetaQuery::is_atomic() OrdersTableMetaQuery::is atomic code WC 10.3.5
private function is_atomic( array $arg ): bool {
return isset( $arg['key'] ) || isset( $arg['value'] );
}