Modify duplicate coupon error code
This commit is contained in:
parent
f2f7e09143
commit
db2de990e7
|
@ -241,6 +241,8 @@ class WC_API_Coupons extends WC_API_Resource {
|
|||
|
||||
$coupon_data = wp_parse_args( $data, $defaults );
|
||||
|
||||
$coupon_code =
|
||||
|
||||
$new_coupon = array(
|
||||
'post_title' => wc_clean( $coupon_data['code'] ),
|
||||
'post_content' => '',
|
||||
|
|
Loading…
Reference in New Issue