Passing post_id to the coupon save action
Pass post_id to the woocommerce_coupon_options_save action so we know what coupon ID is being saved.
This commit is contained in:
parent
c0ee22971d
commit
10d2f9e22f
|
@ -277,6 +277,6 @@ class WC_Meta_Box_Coupon_Data {
|
|||
update_post_meta( $post_id, 'minimum_amount', $minimum_amount );
|
||||
update_post_meta( $post_id, 'customer_email', $customer_email );
|
||||
|
||||
do_action( 'woocommerce_coupon_options_save' );
|
||||
do_action( 'woocommerce_coupon_options_save', $post_id );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue