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

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

add_filter( 'woocommerce_cart_totals_coupon_html', 'wp_kama_woocommerce_cart_totals_coupon_html_filter', 10, 3 );

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

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

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

wc_cart_totals_coupon_html()
woocommerce_cart_totals_coupon_html
woocommerce/includes/wc-cart-functions.php 295
echo wp_kses( apply_filters( 'woocommerce_cart_totals_coupon_html', $coupon_html, $coupon, $discount_amount_html ), array_replace_recursive( wp_kses_allowed_html( 'post' ), array( 'a' => array( 'data-coupon' => true ) ) ) ); // phpcs:ignore PHPCompatibility.PHP.NewFunctions.array_replace_recursiveFound

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

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