Sign up ×
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

1 Answer 1

up vote 0 down vote accepted :

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


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.