woocommerce_formatted_refund_amount хук-фильтрWC 2.4

Get formatted refunded amount.

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

add_filter( 'woocommerce_formatted_refund_amount', 'wp_kama_woocommerce_formatted_refund_amount_filter', 10, 2 );

/**
 * Function for `woocommerce_formatted_refund_amount` filter-hook.
 * 
 * @param  $wc_price 
 * @param  $that     
 *
 * @return 
 */
function wp_kama_woocommerce_formatted_refund_amount_filter( $wc_price, $that ){

	// filter...
	return $wc_price;
}
$wc_price
-
$that
-

Список изменений

С версии 2.4 Введена.

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

WC_Order_Refund::get_formatted_refund_amount()
woocommerce_formatted_refund_amount
woocommerce/includes/class-wc-order-refund.php 137
return apply_filters( 'woocommerce_formatted_refund_amount', wc_price( $this->get_amount(), array( 'currency' => $this->get_currency() ) ), $this );

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

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