woocommerce_formatted_refund_amount filter-hookWC 2.4

Get formatted refunded amount.

Usage

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
-

Changelog

Since 2.4 Introduced.

Where the hook is called

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 );

Where the hook is used in WooCommerce

Usage not found.