|
@@ 803-808 (lines=6) @@
|
| 800 |
|
} |
| 801 |
|
break; |
| 802 |
|
case 'exclude_product_categories' : |
| 803 |
|
case 'excluded_product_categories' : |
| 804 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 805 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 806 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 807 |
|
} |
| 808 |
|
break; |
| 809 |
|
case 'product_ids' : |
| 810 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 811 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
|
@@ 809-814 (lines=6) @@
|
| 806 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 807 |
|
} |
| 808 |
|
break; |
| 809 |
|
case 'product_ids' : |
| 810 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 811 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 812 |
|
$coupon[ $key ] = wc_string_to_array( $value ); |
| 813 |
|
} |
| 814 |
|
break; |
| 815 |
|
case 'individual_use' : |
| 816 |
|
case 'free_shipping' : |
| 817 |
|
case 'exclude_sale_items' : |