WP_REST_Menu_Items_Controller
Methods
1 to 14 of 14
- WP_REST_Menu_Items_Controller::check_has_read_only_access() – Checks whether the current user has read permission for the endpoint.
- WP_REST_Menu_Items_Controller::create_item() – Creates a single post.
- WP_REST_Menu_Items_Controller::delete_item() – Deletes a single menu item.
- WP_REST_Menu_Items_Controller::get_collection_params() – Retrieves the query params for the posts collection.
- WP_REST_Menu_Items_Controller::get_item_permissions_check() – Checks if a given request has access to read a menu item if they have access to edit them.
- WP_REST_Menu_Items_Controller::get_item_schema() – Retrieves the term’s schema, conforming to JSON Schema.
- WP_REST_Menu_Items_Controller::get_items_permissions_check() – Checks if a given request has access to read menu items.
- WP_REST_Menu_Items_Controller::get_menu_id() – Gets the id of the menu that the given menu item belongs to.
- WP_REST_Menu_Items_Controller::get_schema_links() – Retrieve Link Description Objects that should be added to the Schema for the posts collection.
- WP_REST_Menu_Items_Controller::prepare_item_for_database() – Prepares a single post for create or update.
- WP_REST_Menu_Items_Controller::prepare_item_for_response() – Prepares a single post output for response.
- WP_REST_Menu_Items_Controller::prepare_items_query() – Determines the allowed query_vars for a get_items() response and prepares them for WP_Query.
- WP_REST_Menu_Items_Controller::prepare_links() – Prepares links for the request.
- WP_REST_Menu_Items_Controller::update_item() – Updates a single nav menu item.