Automattic\WooCommerce\Internal\PushNotifications\Services

DriverAvailabilityService::is_remote_proxy_available │ public │ WC 11.2.0

Determines whether push notifications can currently be sent through the remote proxy driver: the feature must be enabled and Jetpack connected. This is the proxy driver's availability, which also gates the module.

Method of the class: DriverAvailabilityService{}

No Hooks.

Returns

bool.

Usage

$DriverAvailabilityService = new DriverAvailabilityService();
$DriverAvailabilityService->is_remote_proxy_available(): bool;

Changelog

Since 11.2.0 Introduced.

DriverAvailabilityService::is_remote_proxy_available() code WC 11.3.0

public function is_remote_proxy_available(): bool {
	return $this->is_remote_proxy_enabled() && $this->has_blog_connection();
}