1

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?

1 Answer 1

3

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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