WC_Order::get_remaining_refund_amount()
How much money is left to refund?
Method of the class: WC_Order{}
No Hooks.
Return
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 9.6.1
public function get_remaining_refund_amount() { return wc_format_decimal( $this->get_total() - $this->get_total_refunded(), wc_get_price_decimals() ); }