WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

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

Send through the legacy filter, but not as cents.

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

add_filter( 'woocommerce_coupon_get_discount_amount', 'filter_function_name_1851', 10, 5 );
function filter_function_name_1851( $wc_remove_number_precision, $wc_remove_number_precision, $object, $false, $coupon ){
	// filter...

	return $wc_remove_number_precision;
}
$wc_remove_number_precision
-
$wc_remove_number_precision
-
$object
-
$false
-
$coupon
-

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

WC_Discounts::apply_coupon_percent()
woocommerce_coupon_get_discount_amount
WC_Coupon::get_discount_amount()
woocommerce_coupon_get_discount_amount
WC_Discounts::apply_coupon_fixed_product()
woocommerce_coupon_get_discount_amount
woocommerce/includes/class-wc-discounts.php 374
$filtered_discount = wc_add_number_precision( apply_filters( 'woocommerce_coupon_get_discount_amount', wc_remove_number_precision( $discount ), wc_remove_number_precision( $price_to_discount ), $item->object, false, $coupon ) );
woocommerce/includes/class-wc-coupon.php 449
return apply_filters( 'woocommerce_coupon_get_discount_amount', round( min( $discount, $discounting_amount ), wc_get_rounding_precision() ), $discounting_amount, $cart_item, $single, $this );
woocommerce/includes/class-wc-discounts.php 439
$discount = wc_add_number_precision( apply_filters( 'woocommerce_coupon_get_discount_amount', wc_remove_number_precision( $discount ), wc_remove_number_precision( $price_to_discount ), $item->object, false, $coupon ) );

Где используется хук (в ядре WC)

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