Automattic\WooCommerce\Internal\StockNotifications

Notification::get_cancellation_source │ public │ WC 1.0

Get the cancellation source.

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

Хуков нет.

Возвращает

string|null. The cancellation source or null if there is no source.

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

$Notification = new Notification();
$Notification->get_cancellation_source( $context );
$context(строка)
Context.
По умолчанию: 'view'

Код Notification::get_cancellation_source() WC 11.3.0

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