WC_Order_Refund::get_refunded_payment()publicWC 3.3

Return if the payment was refunded via API.

Метод класса: WC_Order_Refund{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_Order_Refund = new WC_Order_Refund();
$WC_Order_Refund->get_refunded_payment( $context );
$context(строка)
What the value is for. Valid values are view and edit.
По умолчанию: 'view'

Список изменений

С версии 3.3 Введена.

Код WC_Order_Refund::get_refunded_payment() WC 8.7.0

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