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.
Метод класса: RestApiControllerBase{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$RestApiControllerBase = new RestApiControllerBase(); $RestApiControllerBase->register_routes();
Код RestApiControllerBase::register_routes() RestApiControllerBase::register routes WC 9.7.1
abstract public function register_routes();