Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableMetaQuery::sanitize_join()
Makes sure a JOIN array does not have duplicates.
Method of the class: 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.
OrdersTableMetaQuery::sanitize_join() OrdersTableMetaQuery::sanitize join code WC 9.3.3
private function sanitize_join( array $join ): array { return array_filter( array_unique( array_map( 'trim', $join ) ) ); }