WC_API_Orders::array_contains( array $needles, array $haystack )
Utility function to see if the meta array contains data from variations
Description Description
Parameters Parameters
- $needles
-
(Required)
- $haystack
-
(Required)
Return Return
(bool)
Source Source
File: includes/legacy/api/v2/class-wc-api-orders.php
protected function array_contains( $needles, $haystack ) { foreach ( $needles as $key => $value ) { if ( $haystack[ $key ] !== $value ) { return false; } } return true; }