woocommerce_formatted_refund_amount хук-фильтр . WC 2.4
Get formatted refunded amount.
Использование
add_filter( 'woocommerce_formatted_refund_amount', 'filter_function_name_5497', 10, 2 ); function filter_function_name_5497( $wc_price, $that ){ // filter... return $wc_price; }
- $wc_price
- -
- $that
- -
Список изменений
С версии 2.4 | Введена. |
Где вызывается хук
woocommerce_formatted_refund_amount
woocommerce/includes/class-wc-order-refund.php 121
return apply_filters( 'woocommerce_formatted_refund_amount', wc_price( $this->get_amount(), array( 'currency' => $this->get_currency() ) ), $this );