woocommerce_coupon_discount_amount_html хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_coupon_discount_amount_html', 'wp_kama_woocommerce_coupon_discount_amount_html_filter', 10, 2 );

/**
 * Function for `woocommerce_coupon_discount_amount_html` filter-hook.
 * 
 * @param  $discount_amount_html 
 * @param  $coupon               
 *
 * @return 
 */
function wp_kama_woocommerce_coupon_discount_amount_html_filter( $discount_amount_html, $coupon ){

	// filter...
	return $discount_amount_html;
}
$discount_amount_html
-
$coupon
-

Где вызывается хук

wc_cart_totals_coupon_html()
woocommerce_coupon_discount_amount_html
woocommerce/includes/wc-cart-functions.php 293
$discount_amount_html = apply_filters( 'woocommerce_coupon_discount_amount_html', $discount_amount_html, $coupon );

Где используется хук в WooCommerce

Использование не найдено.