WC_Order_Refund::get_reason()publicWC 2.2

Get refund reason.

Method of the class: WC_Order_Refund{}

No Hooks.

Return

String.

Usage

$WC_Order_Refund = new WC_Order_Refund();
$WC_Order_Refund->get_reason( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 2.2 Introduced.

WC_Order_Refund::get_reason() code WC 9.0.1

public function get_reason( $context = 'view' ) {
	return $this->get_prop( 'reason', $context );
}