includes/cli/class-wc-cli-order.php 1 location
|
@@ 1054-1061 (lines=8) @@
|
| 1051 |
|
* @since 2.5.0 |
| 1052 |
|
* @return bool Returns true if meta array contains data from variations |
| 1053 |
|
*/ |
| 1054 |
|
protected function array_contains( $needles, $haystack ) { |
| 1055 |
|
foreach ( $needles as $key => $value ) { |
| 1056 |
|
if ( $haystack[ $key ] !== $value ) { |
| 1057 |
|
return false; |
| 1058 |
|
} |
| 1059 |
|
} |
| 1060 |
|
return true; |
| 1061 |
|
} |
| 1062 |
|
|
| 1063 |
|
/** |
| 1064 |
|
* Create or update an order shipping method |
includes/api/class-wc-api-orders.php 1 location
|
@@ 1042-1049 (lines=8) @@
|
| 1039 |
|
/** |
| 1040 |
|
* Utility function to see if the meta array contains data from variations |
| 1041 |
|
*/ |
| 1042 |
|
protected function array_contains( $needles, $haystack ) { |
| 1043 |
|
foreach ( $needles as $key => $value ) { |
| 1044 |
|
if ( $haystack[ $key ] !== $value ) { |
| 1045 |
|
return false; |
| 1046 |
|
} |
| 1047 |
|
} |
| 1048 |
|
return true; |
| 1049 |
|
} |
| 1050 |
|
|
| 1051 |
|
/** |
| 1052 |
|
* Create or update an order shipping method |