woocommerce_coupon_options_save

The WooCommerce woocommerce coupon options save hook.

Description

do_action( 'woocommerce_coupon_options_save', (unknown) $post_id, (unknown) $coupon ); 

Parameters (2)

0. $post_id (unknown)
The post id.
1. $coupon (unknown)
The coupon.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_coupon_options_save', $post_id, $coupon ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_coupon_options_save callback 
  2. function action_woocommerce_coupon_options_save( $post_id, $coupon ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_coupon_options_save', 'action_woocommerce_coupon_options_save', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_coupon_options_save', 'action_woocommerce_coupon_options_save', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php  
  1. do_action( 'woocommerce_coupon_options_save', $post_id, $coupon );