WP_REST_Controller::register_routes()
Registers the routes for the objects of the controller.
Description
See also
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
.
View all references
public function register_routes() {
_doing_it_wrong(
'WP_REST_Controller::register_routes',
/* translators: %s: register_routes() */
sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ),
'4.7.0'
);
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |