WP_REST_Controller::register_routes()
Registers the routes for the objects of the controller.
Method of the class: WP_REST_Controller{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_REST_Controller = new WP_REST_Controller(); $WP_REST_Controller->register_routes();
Notes
Changelog
Since 4.7.0 | Introduced. |
WP_REST_Controller::register_routes() WP REST Controller::register routes code WP 6.6.2
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' ); }