I’m trying to write a routine that will pull items from the wp_options table in order to transport them to another site.
The problem I have is that if the source site has custom menus, I’d like to bring those along as well. What table records are referenced for custom menus?
I see at least these three in wp_options:
widget_nav_menu
theme_mods_myTheme
myTheme_menus_created
Menus aren’t stored in options. They are linked quite complicatedly so through various other tables.
where $menu is the slug of the menu such as main, footer or whatever you may have called it.
The query outlines the relationships that you have to account for.