Say you have custom menus enabled with your WP theme. Is there any action associated with saving a menu once you've arranged it accordingly? To further clarify: say you've arranged a menu with some links and some posts, how might you get the titles of the posts in said menu upon saving (clicking the "Save Menu" button)?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
At least in 3.4.1, there is an action for that: wp_update_nav_menu See here. Then you can get the items in your menu with something like:
|
|||
|
|
|
There is no dedicated action for your needs, but you can misuse the Sample code for a start:
|
|||||||
|
