WC_API_Orders::array_contains() protected WC 1.0
Utility function to see if the meta array contains data from variations
{} Это метод класса: WC_API_Orders{}
Хуков нет.
Возвращает
true/false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->array_contains( $needles, $haystack );
- $needles(массив) (обязательный)
- -
- $haystack(массив) (обязательный)
- -
Код WC_API_Orders::array_contains() WC API Orders::array contains WC 5.0.0
protected function array_contains( $needles, $haystack ) {
foreach ( $needles as $key => $value ) {
if ( $haystack[ $key ] !== $value ) {
return false;
}
}
return true;
}