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.

Method of the class: DriverAvailabilityService{}

No Hooks.

Returns

bool.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_jetpack_sync_installed(): bool;

Changelog

Since 11.2.0 Introduced.

DriverAvailabilityService::is_jetpack_sync_installed() code WC 11.3.0

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 );
}