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