Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableMetaQuery::sanitize_join()privateWC 1.0

Makes sure a JOIN array does not have duplicates.

Метод класса: OrdersTableMetaQuery{}

No Hooks.

Return

Array. A sanitized JOIN array.

Usage

// private - for code of main (parent) class only
$result = $this->sanitize_join( $join ): array;
$join(array) (required)
A JOIN array.

Code of OrdersTableMetaQuery::sanitize_join() WC 7.1.0

private function sanitize_join( array $join ): array {
	return array_filter( array_unique( array_map( 'trim', $join ) ) );
}