WordPress at Your Fingertips
function is not described

WC_Order_Refund::set_refunded_payment() public WC 3.3

Set if the payment was refunded via API.

{} It's a method of the class: WC_Order_Refund{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Refund = new WC_Order_Refund();
$WC_Order_Refund->set_refunded_payment( $value );
$value(true|false) (required)
Value to set.

Changelog

Since 3.3 Introduced.

Code of WC_Order_Refund::set_refunded_payment() WC 5.8.0

public function set_refunded_payment( $value ) {
	$this->set_prop( 'refunded_payment', (bool) $value );
}