woocommerce_formatted_refund_amount
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 | Введена. |
Где вызывается хук
woocommerce_formatted_refund_amount
woocommerce/includes/class-wc-order-refund.php 139
return apply_filters( 'woocommerce_formatted_refund_amount', wc_price( $this->get_amount(), array( 'currency' => $this->get_currency() ) ), $this );