Automattic\WooCommerce\Internal\PushNotifications\Services
DriverAvailabilityService::has_blog_connection
Determines whether the site has an active Jetpack blog connection, which the remote proxy driver requires.
Method of the class: DriverAvailabilityService{}
No Hooks.
Returns
bool.
Usage
// protected - for code of main (parent) or child class $result = $this->has_blog_connection(): bool;
Changelog
| Since 11.2.0 | Introduced. |
DriverAvailabilityService::has_blog_connection() DriverAvailabilityService::has blog connection code WC 11.3.0
protected function has_blog_connection(): bool {
return $this->query_jetpack_connection(
self::CHECK_BLOG_CONNECTION,
static fn ( JetpackConnectionManager $manager ): bool => $manager->is_connected()
);
}