WC_Order::get_remaining_refund_amount
How much money is left to refund?
Method of the class: WC_Order{}
No Hooks.
Returns
String.
Usage
$WC_Order = new WC_Order(); $WC_Order->get_remaining_refund_amount();
WC_Order::get_remaining_refund_amount() WC Order::get remaining refund amount code WC 10.5.0
public function get_remaining_refund_amount() {
return wc_format_decimal( $this->get_total() - $this->get_total_refunded(), wc_get_price_decimals() );
}