Where are Custom Menus saved in the Database for Wordpress 3.0?
Navigation menu items are stored in the wp_posts table with post_type = 'nav_menu_item'
.
When new custom menu is added, its entry is added into several tables.
- table:
_term_taxonomy
with a columntaxonomy
and valuenav_menu
. - from 1)
term_id
is also in table:_terms
with the title of menu which is shown in admin panel - table:
_term_relationship
will containterm_texonomy_id
from 1) and connection to all object_id which will be linked to all_post
table havingsub_menu
and below level menu. - table:
_postmeta
will contain all the details related to menu and submenu for eachobject_id
from_posts
table.