Automattic\WooCommerce\Internal\PushNotifications\Services
DriverAvailabilityService::is_remote_proxy_available
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.
Метод класса: DriverAvailabilityService{}
Хуков нет.
Возвращает
bool.
Использование
$DriverAvailabilityService = new DriverAvailabilityService(); $DriverAvailabilityService->is_remote_proxy_available(): bool;
Список изменений
| С версии 11.2.0 | Введена. |
Код DriverAvailabilityService::is_remote_proxy_available() DriverAvailabilityService::is remote proxy available WC 11.2.2
public function is_remote_proxy_available(): bool {
return $this->is_remote_proxy_enabled() && $this->has_blog_connection();
}