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 10.3.6
public function get_cancellation_source( $context = 'view' ) {
return $this->get_prop( 'cancellation_source', $context );
}