woocommerce_update_coupon action-hookWC 1.0

Usage

add_action( 'woocommerce_update_coupon', 'wp_kama_woocommerce_update_coupon_action', 10, 2 );

/**
 * Function for `woocommerce_update_coupon` action-hook.
 * 
 * @param  $coupon_id 
 * @param  $coupon    
 *
 * @return void
 */
function wp_kama_woocommerce_update_coupon_action( $coupon_id, $coupon ){

	// action...
}
$coupon_id
-
$coupon
-

Where the hook is called

WC_Coupon_Data_Store_CPT::update()
woocommerce_update_coupon
WC_API_Coupons::edit_coupon()
woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php 193
do_action( 'woocommerce_update_coupon', $coupon->get_id(), $coupon );
woocommerce/includes/legacy/api/v3/class-wc-api-coupons.php 434
do_action( 'woocommerce_update_coupon', $id );
woocommerce/includes/legacy/api/v2/class-wc-api-coupons.php 436
do_action( 'woocommerce_update_coupon', $id );

Where the hook is used in WooCommerce

Usage not found.