Automattic\WooCommerce\Internal\StockNotifications
Notification::get_cancellation_source
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() Notification::get cancellation source WC 11.3.0
public function get_cancellation_source( $context = 'view' ) {
return $this->get_prop( 'cancellation_source', $context );
}