WP_REST_Navigation_Fallback_Controller::register_routes() – Registers the controllers routes.
You appear to be a bot. Output may be restricted
Description
Registers the controllers routes.
Usage
$void = WP_REST_Navigation_Fallback_Controller::register_routes();
Parameters
Returns
void
Source
File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php
Lines:
1 to 18 of 18
public function register_routes() { // Lists a single nav item based on the given id or slug. register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_item' ), 'permission_callback' => array( $this, 'get_item_permissions_check' ), 'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::READABLE ), ), 'schema' => array( $this, 'get_item_schema' ), ) ); }