Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.