Automattic\WooCommerce\Internal\Admin
Events::is_remote_inbox_notifications_enabled()
Checks if remote inbox notifications are enabled.
Метод класса: Events{}
Хуков нет.
Возвращает
true|false
. Whether remote inbox notifications are enabled.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_remote_inbox_notifications_enabled();
Код Events::is_remote_inbox_notifications_enabled() Events::is remote inbox notifications enabled WC 8.7.0
protected function is_remote_inbox_notifications_enabled() { // Check if the feature flag is disabled. if ( ! Features::is_enabled( 'remote-inbox-notifications' ) ) { return false; } // Check if the site has opted out of marketplace suggestions. if ( get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) !== 'yes' ) { return false; } // All checks have passed. return true; }