Automattic\WooCommerce\Internal\PushNotifications\Services
DriverAvailabilityService::is_remote_proxy_enabled
Determines whether the remote proxy driver is enabled (i.e. the feature is not disabled via the filter), a dependency of that driver.
Method of the class: DriverAvailabilityService{}
No Hooks.
Returns
bool.
Usage
// protected - for code of main (parent) or child class $result = $this->is_remote_proxy_enabled(): bool;
Changelog
| Since 11.2.0 | Introduced. |
DriverAvailabilityService::is_remote_proxy_enabled() DriverAvailabilityService::is remote proxy enabled code WC 11.3.0
protected function is_remote_proxy_enabled(): bool {
try {
return $this->read_disabled_filter();
} catch ( Throwable $e ) {
$this->failed_checks[ self::CHECK_PROXY_ENABLED ] = true;
$this->log_throwable( 'Error reading the push notifications disabled filter', $e );
// Fail closed: an unreadable filter must not enable the feature.
return false;
}
}