Automattic\WooCommerce\Internal\PushNotifications\Controllers
PushNotificationStatusRestController::get_status
Return the installed push notification drivers and the preferred one.
Метод класса: PushNotificationStatusRestController{}
Хуков нет.
Возвращает
WP_REST_Response|WP_Error.
Использование
$PushNotificationStatusRestController = new PushNotificationStatusRestController(); $PushNotificationStatusRestController->get_status();
Список изменений
| С версии 11.2.0 | Введена. |
Код PushNotificationStatusRestController::get_status() PushNotificationStatusRestController::get status WC 11.2.2
public function get_status() {
return new WP_REST_Response(
$this->driver_availability_service->get_status(),
WP_Http::OK
);
}