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.
Метод класса: DriverAvailabilityService{}
Хуков нет.
Возвращает
bool.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->has_user_connection(): bool;
Список изменений
| С версии 11.2.0 | Введена. |
Код DriverAvailabilityService::has_user_connection() DriverAvailabilityService::has user connection WC 11.2.2
protected function has_user_connection(): bool {
return $this->query_jetpack_connection(
self::CHECK_USER_CONNECTION,
static fn ( JetpackConnectionManager $manager ): bool => $manager->has_connected_owner()
);
}