WordPress at Your Fingertips
function is not described

WC_Order_Refund::set_reason() public WC 1.0

Set refund reason.

{} 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_reason( $value );
$value(string) (required)
Value to set.

Code of WC_Order_Refund::set_reason() WC 5.8.0

public function set_reason( $value ) {
	$this->set_prop( 'reason', $value );
}