woocommerce_api_coupon_response filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_coupon_response', 'wp_kama_woocommerce_api_coupon_response_filter', 10, 4 );

/**
 * Function for `woocommerce_api_coupon_response` filter-hook.
 * 
 * @param  $coupon_data 
 * @param  $coupon      
 * @param  $fields      
 * @param  $server      
 *
 * @return 
 */
function wp_kama_woocommerce_api_coupon_response_filter( $coupon_data, $coupon, $fields, $server ){

	// filter...
	return $coupon_data;
}
$coupon_data
-
$coupon
-
$fields
-
$server
-

Where the hook is called

WC_API_Coupons::get_coupon()
woocommerce_api_coupon_response
woocommerce/includes/legacy/api/v1/class-wc-api-coupons.php 137
return array( 'coupon' => apply_filters( 'woocommerce_api_coupon_response', $coupon_data, $coupon, $fields, $this->server ) );
woocommerce/includes/legacy/api/v3/class-wc-api-coupons.php 145
return array( 'coupon' => apply_filters( 'woocommerce_api_coupon_response', $coupon_data, $coupon, $fields, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-coupons.php 145
return array( 'coupon' => apply_filters( 'woocommerce_api_coupon_response', $coupon_data, $coupon, $fields, $this->server ) );

Where the hook is used in WooCommerce

Usage not found.