Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFeatureHighlightNotification::is_applicable │ private │ WC 1.0

Whether the notification is relevant for the current store settings.

Method of the class: OrderWithdrawalFeatureHighlightNotification{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->is_applicable(): bool;

OrderWithdrawalFeatureHighlightNotification::is_applicable() code WC 11.1.2

private function is_applicable(): bool {
	return 'no' === get_option( self::COMING_SOON_OPTION, 'yes' )
		&& $this->store_sells_to_eu_or_all_countries();
}