Automattic\WooCommerce\Internal\StockNotifications
Notification::get_cancellation_source
Get the cancellation source.
Method of the class: Notification{}
No Hooks.
Returns
string|null. The cancellation source or null if there is no source.
Usage
$Notification = new Notification(); $Notification->get_cancellation_source( $context );
- $context(string)
- Context.
Default:'view'
Notification::get_cancellation_source() Notification::get cancellation source code WC 11.0.1
public function get_cancellation_source( $context = 'view' ) {
return $this->get_prop( 'cancellation_source', $context );
}