WordPress at Your Fingertips
function is not described

WC_API_Orders::array_contains() protected WC 1.0

Utility function to see if the meta array contains data from variations

{} It's a method of the class: WC_API_Orders{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->array_contains( $needles, $haystack );
$needles(array) (required)
-
$haystack(array) (required)
-

Code of WC_API_Orders::array_contains() WC 5.7.1

protected function array_contains( $needles, $haystack ) {
	foreach ( $needles as $key => $value ) {
		if ( $haystack[ $key ] !== $value ) {
			return false;
		}
	}
	return true;
}