WC_REST_WCCOM_Site_Status_Controller::register_routes()publicWC 8.7.0

Register the routes for Site Status Controller.

Method of the class: WC_REST_WCCOM_Site_Status_Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_REST_WCCOM_Site_Status_Controller = new WC_REST_WCCOM_Site_Status_Controller();
$WC_REST_WCCOM_Site_Status_Controller->register_routes();

Changelog

Since 8.7.0 Introduced.

WC_REST_WCCOM_Site_Status_Controller::register_routes() code WC 9.3.3

public function register_routes() {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base,
		array(
			array(
				'methods'             => WP_REST_Server::READABLE,
				'callback'            => array( $this, 'handle_status_request' ),
				'permission_callback' => array( $this, 'check_permission' ),
			),
		),
	);
}