Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFeatureHighlightNotification::is_applicable
Whether the notification is relevant for the current store settings.
Метод класса: OrderWithdrawalFeatureHighlightNotification{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_applicable(): bool;
Код OrderWithdrawalFeatureHighlightNotification::is_applicable() OrderWithdrawalFeatureHighlightNotification::is applicable WC 11.2.2
private function is_applicable(): bool {
return 'no' === get_option( self::COMING_SOON_OPTION, 'yes' )
&& $this->store_sells_to_eu_or_all_countries();
}