wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/nav-menu.php › WordPress File
Functions27
› Navigation Menu functions
Function | Short description |
---|---|
get_nav_menu_locations | Retrieves all registered navigation menu locations and the menus assigned to them. |
get_registered_nav_menus | Retrieves all registered navigation menu locations in a theme. |
has_nav_menu | Determines whether a registered nav menu location has a menu assigned to it. |
is_nav_menu | Determines whether the given ID is a navigation menu. |
is_nav_menu_item | Determines whether the given ID is a nav menu item. |
register_nav_menu | Registers a navigation menu location for a theme. |
register_nav_menus | Registers navigation menu locations for a theme. |
unregister_nav_menu | Unregisters a navigation menu location for a theme. |
update_menu_item_cache | Updates post and term caches for all linked objects for a list of menu items. |
wp_create_nav_menu | Creates a navigation menu. |
wp_delete_nav_menu | Deletes a navigation menu. |
wp_get_associated_nav_menu_items | Returns the menu items associated with a particular object. |
wp_get_nav_menus | Returns all navigation menu objects. |
wp_get_nav_menu_items | Retrieves all menu items of a navigation menu. |
wp_get_nav_menu_name | Returns the name of a navigation menu. |
wp_get_nav_menu_object | Returns a navigation menu object. |
wp_map_nav_menu_locations | Maps nav menu locations according to assignments in previously active theme. |
wp_setup_nav_menu_item | Decorates a menu item object with the shared navigation menu item properties. |
wp_update_nav_menu_item | Saves the properties of a menu item or create a new one. |
wp_update_nav_menu_object | Saves the properties of a menu or create a new menu with those properties. |
_is_valid_nav_menu_item | Determines whether a menu item is valid. |
_wp_auto_add_pages_to_menu | Automatically add newly published page objects to menus with that as an option. |
_wp_delete_customize_changeset_dependent_auto_drafts | Deletes auto-draft posts associated with the supplied changeset. |
_wp_delete_post_menu_item | Callback for handling a menu item when its original object is deleted. |
_wp_delete_tax_menu_item | Serves as a callback for handling a menu item when its original object is deleted. |
_wp_menus_changed | Handles menu config after theme change. |
_wp_reset_invalid_menu_item_parent | Prevents menu items from being their own parent. |