WC_REST_WCCOM_Site_Status_Controller::register_routes
Register the routes for Site Status Controller.
Method of the class: WC_REST_WCCOM_Site_Status_Controller{}
No Hooks.
Returns
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() WC REST WCCOM Site Status Controller::register routes code WC 10.4.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' ),
),
),
);
}