Automattic\WooCommerce\Internal
RestApiControllerBase::register_routes()
Register the REST API endpoints handled by this controller.
Use 'register_rest_route' in the usual way, it's recommended to use the 'run' method for 'callback' and the 'check_permission' method for 'permission_check', see the example in the class comment.
Method of the class: RestApiControllerBase{}
No Hooks.
Return
null
. Nothing (null).
Usage
$RestApiControllerBase = new RestApiControllerBase(); $RestApiControllerBase->register_routes();
RestApiControllerBase::register_routes() RestApiControllerBase::register routes code WC 9.3.3
abstract public function register_routes();