|
@@ 813-818 (lines=6) @@
|
| 810 |
|
} |
| 811 |
|
break; |
| 812 |
|
case 'exclude_product_categories' : |
| 813 |
|
case 'excluded_product_categories' : |
| 814 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 815 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 816 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 817 |
|
} |
| 818 |
|
break; |
| 819 |
|
case 'product_ids' : |
| 820 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 821 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
|
@@ 819-824 (lines=6) @@
|
| 816 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 817 |
|
} |
| 818 |
|
break; |
| 819 |
|
case 'product_ids' : |
| 820 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 821 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 822 |
|
$coupon[ $key ] = wc_string_to_array( $value ); |
| 823 |
|
} |
| 824 |
|
break; |
| 825 |
|
case 'individual_use' : |
| 826 |
|
case 'free_shipping' : |
| 827 |
|
case 'exclude_sale_items' : |