Automattic\WooCommerce\Internal\PushNotifications\Controllers

PushNotificationStatusRestController::get_status │ public │ WC 11.2.0

Return the installed push notification drivers and the preferred one.

Method of the class: PushNotificationStatusRestController{}

No Hooks.

Returns

WP_REST_Response|WP_Error.

Usage

$PushNotificationStatusRestController = new PushNotificationStatusRestController();
$PushNotificationStatusRestController->get_status();

Changelog

Since 11.2.0 Introduced.

PushNotificationStatusRestController::get_status() code WC 11.3.0

public function get_status() {
	return new WP_REST_Response(
		$this->driver_availability_service->get_status(),
		WP_Http::OK
	);
}