edit_coupon REST API look for type and not discount_type

This commit is contained in:
Gerhard 2014-03-05 07:59:27 +02:00
parent fa6eb98535
commit a2ecd3885c
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class WC_API_Coupons extends WC_API_Resource {
}
if ( isset( $data['type'] ) ) {
update_post_meta( $id, 'discount_type', $data['discount_type'] );
update_post_meta( $id, 'discount_type', $data['type'] );
}
if ( isset( $data['amount'] ) ) {