WC_REST_WCCOM_Site_SSR_Controller::register_routes()
Register the routes for SSR Controller.
Method of the class: WC_REST_WCCOM_Site_SSR_Controller{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_REST_WCCOM_Site_SSR_Controller = new WC_REST_WCCOM_Site_SSR_Controller(); $WC_REST_WCCOM_Site_SSR_Controller->register_routes();
Changelog
Since 7.8.0 | Introduced. |
WC_REST_WCCOM_Site_SSR_Controller::register_routes() WC REST WCCOM Site SSR Controller::register routes code WC 9.4.2
public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'handle_ssr_request' ), 'permission_callback' => array( $this, 'check_permission' ), ), ), ); }