Automattic\WooCommerce\Internal\PushNotifications\Services
DriverAvailabilityService::has_user_connection
Determines whether the site has a connected Jetpack user (owner), which the Jetpack Sync driver requires.
Method of the class: DriverAvailabilityService{}
No Hooks.
Returns
bool.
Usage
// protected - for code of main (parent) or child class $result = $this->has_user_connection(): bool;
Changelog
| Since 11.2.0 | Introduced. |
DriverAvailabilityService::has_user_connection() DriverAvailabilityService::has user connection code WC 11.3.0
protected function has_user_connection(): bool {
return $this->query_jetpack_connection(
self::CHECK_USER_CONNECTION,
static fn ( JetpackConnectionManager $manager ): bool => $manager->has_connected_owner()
);
}