Automattic\WooCommerce\Internal\PushNotifications\Services

DriverAvailabilityService::is_jetpack_sync_installed │ protected │ WC 11.2.0

Determines whether the Jetpack Sync driver is installed.

Requires the Jetpack plugin as well as the sync package: the package alone can be supplied by an unrelated plugin, in which case there is no Jetpack Sync flow for the apps to fall back to.

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

Хуков нет.

Возвращает

bool.

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

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

Список изменений

С версии 11.2.0 Введена.

Код DriverAvailabilityService::is_jetpack_sync_installed() WC 11.2.2

protected function is_jetpack_sync_installed(): bool {
	return $this->class_is_present( self::JETPACK_PLUGIN_CLASS )
		&& $this->class_is_present( self::JETPACK_SYNC_SETTINGS_CLASS );
}