woocommerce_api_edit_coupon action-hookWC 1.0

Usage

add_action( 'woocommerce_api_edit_coupon', 'wp_kama_woocommerce_api_edit_coupon_action', 10, 2 );

/**
 * Function for `woocommerce_api_edit_coupon` action-hook.
 * 
 * @param  $id   
 * @param  $data 
 *
 * @return void
 */
function wp_kama_woocommerce_api_edit_coupon_action( $id, $data ){

	// action...
}
$id
-
$data
-

Where the hook is called

WC_API_Coupons::edit_coupon()
woocommerce/includes/legacy/api/v3/class-wc-api-coupons.php 433
do_action( 'woocommerce_api_edit_coupon', $id, $data );
woocommerce/includes/legacy/api/v2/class-wc-api-coupons.php 435
do_action( 'woocommerce_api_edit_coupon', $id, $data );

Where the hook is used in WooCommerce

Usage not found.