Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableMetaQuery::is_atomic()privateWC 1.0

Checks whether a given meta_query clause is atomic or not (i.e. not nested).

Method of the class: OrdersTableMetaQuery{}

No Hooks.

Return

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() code WC 8.7.0

private function is_atomic( array $arg ): bool {
	return isset( $arg['key'] ) || isset( $arg['value'] );
}