WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to "save" my menus into transients. I want to update those when there's been any changes to the menus via the admin custom menus. I've looked for an action but can't see to find anything. Perhaps I missed the obvious?

share|improve this question
up vote 0 down vote accepted

http://adambrown.info/p/wp_hooks/hook/wp_update_nav_menu?version=3.5&file=wp-includes/nav-menu.php :

do_action( 'wp_update_nav_menu', $menu_id, $menu_data );

Consequently, a nav menu is a custom post type, as are its menu items, so all of the usual hooks for publish/save/update/trash apply

share|improve this answer
    
Ha! Thx. I was searching for save, not update. Good stuff. Thank you @TomJNowell – Chief Alchemist Mar 27 '13 at 11:00
    
If it's the correct answer could you mark it as correct? – Tom J Nowell Mar 27 '13 at 11:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.