[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> nav-menu.php (summary)

Core Navigation Menu API

File Size: 1302 lines (47 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

  _wp_ajax_menu_quick_search()
  wp_nav_menu_setup()
  wp_initial_nav_menu_meta_boxes()
  wp_nav_menu_post_type_meta_boxes()
  wp_nav_menu_taxonomy_meta_boxes()
  wp_nav_menu_disabled_check()
  wp_nav_menu_item_link_meta_box()
  wp_nav_menu_item_post_type_meta_box()
  wp_nav_menu_item_taxonomy_meta_box()
  wp_save_nav_menu_items()
  _wp_nav_menu_meta_box_object()
  wp_get_nav_menu_to_edit()
  wp_nav_menu_manage_columns()
  _wp_delete_orphaned_draft_menu_items()
  wp_nav_menu_update_menu_items()
  _wp_expand_nav_menu_post_data()

Functions
Functions that are not part of a class:

_wp_ajax_menu_quick_search( $request = array()   X-Ref
Prints the appropriate response to a menu quick search.

param: array $request The unsanitized request values.
since: 3.0.0

wp_nav_menu_setup()   X-Ref
Register nav menu meta boxes and advanced menu items.

since: 3.0.0

wp_initial_nav_menu_meta_boxes()   X-Ref
Limit the amount of meta boxes to pages, posts, links, and categories for first time users.

since: 3.0.0

wp_nav_menu_post_type_meta_boxes()   X-Ref
Creates meta boxes for any post type menu item..

since: 3.0.0

wp_nav_menu_taxonomy_meta_boxes()   X-Ref
Creates meta boxes for any taxonomy menu item.

since: 3.0.0

wp_nav_menu_disabled_check( $nav_menu_selected_id, $display = true )   X-Ref
Check whether to disable the Menu Locations meta box submit button and inputs.

return: string|false Disabled attribute if at least one menu exists, false if not.
param: int|string $nav_menu_selected_id ID, name, or slug of the currently selected menu.
param: bool       $display              Whether to display or just return the string.
since: 3.6.0
since: 5.3.1 The `$display` parameter was added.

wp_nav_menu_item_link_meta_box()   X-Ref
Displays a meta box for the custom links menu item.

since: 3.0.0

wp_nav_menu_item_post_type_meta_box( $data_object, $box )   X-Ref
Displays a meta box for a post type menu item.

param: string $data_object Not used.
param: array  $box {
since: 3.0.0

wp_nav_menu_item_taxonomy_meta_box( $data_object, $box )   X-Ref
Displays a meta box for a taxonomy menu item.

param: string $data_object Not used.
param: array  $box {
since: 3.0.0

wp_save_nav_menu_items( $menu_id = 0, $menu_data = array()   X-Ref
Save posted nav menu item data.

return: int[] The database IDs of the items saved
param: int     $menu_id   The menu ID for which to save this item. Value of 0 makes a draft, orphaned menu item. Default 0.
param: array[] $menu_data The unsanitized POSTed menu item data.
since: 3.0.0

_wp_nav_menu_meta_box_object( $data_object = null )   X-Ref
Adds custom arguments to some of the meta box object types.

return: object The post type or taxonomy object.
param: object $data_object The post type or taxonomy meta-object.
since: 3.0.0

wp_get_nav_menu_to_edit( $menu_id = 0 )   X-Ref
Returns the menu formatted to edit.

return: string|WP_Error The menu formatted to edit or error object on failure.
param: int $menu_id Optional. The ID of the menu to format. Default 0.
since: 3.0.0

wp_nav_menu_manage_columns()   X-Ref
Returns the columns for the nav menus page.

return: string[] Array of column titles keyed by their column name.
since: 3.0.0

_wp_delete_orphaned_draft_menu_items()   X-Ref
Deletes orphaned draft menu items

since: 3.0.0

wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title )   X-Ref
Saves nav menu items

return: array The menu updated message
param: int|string $nav_menu_selected_id    ID, slug, or name of the currently-selected menu.
param: string     $nav_menu_selected_title Title of the currently-selected menu.
since: 3.6.0

_wp_expand_nav_menu_post_data()   X-Ref
If a JSON blob of navigation menu data is in POST data, expand it and inject
it into `$_POST` to avoid PHP `max_input_vars` limitations. See #14134.

since: 4.5.3



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1