|
@@ 743-748 (lines=6) @@
|
| 740 |
|
} |
| 741 |
|
break; |
| 742 |
|
case 'exclude_product_categories' : |
| 743 |
|
case 'excluded_product_categories' : |
| 744 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 745 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 746 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 747 |
|
} |
| 748 |
|
break; |
| 749 |
|
case 'product_ids' : |
| 750 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 751 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
|
@@ 749-754 (lines=6) @@
|
| 746 |
|
$coupon['excluded_product_categories'] = wc_string_to_array( $value ); |
| 747 |
|
} |
| 748 |
|
break; |
| 749 |
|
case 'product_ids' : |
| 750 |
|
if ( ! is_array( $coupon[ $key ] ) ) { |
| 751 |
|
_doing_it_wrong( $key, $key . ' should be an array instead of a string.', '2.7' ); |
| 752 |
|
$coupon[ $key ] = wc_string_to_array( $value ); |
| 753 |
|
} |
| 754 |
|
break; |
| 755 |
|
case 'individual_use' : |
| 756 |
|
case 'free_shipping' : |
| 757 |
|
case 'exclude_sale_items' : |