Core Class
View Source on Trac ↗
Core Class
WP_REST_Navigation_Fallback_Controller
class WP_REST_Navigation_Fallback_Controller
// Constructor: function Object() { [native code] } REST Controller to fetch a fallback Navigation Block Menu. If needed it creates one.
Methods 7 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructs the controller. |
| register_routes() void | Registers the controllers routes. |
| get_item_permissions_check() (true | Checks if a given request has access to read fallbacks.
Parameters: $request: mixed |
| get_item() (WP_REST_Response | Gets the most appropriate fallback Navigation Menu.
Parameters: $request: mixed |
| get_item_schema() array | Retrieves the fallbacks' schema, conforming to JSON Schema. |
| prepare_item_for_response() WP_REST_Response | Matches the post data to the schema we want.
Parameters: $item: mixed, $request: mixed |
| prepare_links() array | Prepares the links for the request.
Parameters: $post: mixed |
Properties
| Property / Type | Description |
|---|---|
| $post_type mixed public | No description available. |
Class Information
Since Version
6.3.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php
Advertisement