wc_format_refund_total() WC 1.0
Make a refund total negative.
Хуков нет.
Возвращает
float.
Использование
wc_format_refund_total( $amount );
- $amount(float) (обязательный)
- Refunded amount.
Код wc_format_refund_total() wc format refund total WC 5.0.0
function wc_format_refund_total( $amount ) {
return $amount * -1;
}