Automattic\WooCommerce\Internal\Admin

Events::is_remote_inbox_notifications_enabled │ protected │ WC 1.0

Checks if remote inbox notifications are enabled.

Метод класса: Events{}

Хуков нет.

Возвращает

bool. Whether remote inbox notifications are enabled.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_remote_inbox_notifications_enabled();

Код Events::is_remote_inbox_notifications_enabled() WC 11.2.2

protected function is_remote_inbox_notifications_enabled() {
	// 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;
}