WordPress at Your Fingertips
function is not described

WC_Order_Refund::get_reason() public WC 2.2

Get refund reason.

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

No Hooks.

Return

Int|float.

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.

Code of WC_Order_Refund::get_reason() WC 5.8.0

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