In case of menus that contain items other than pages, such as custom post types, posts, posts of a certain category, etc. How can I make wordpress to automatically (programatically) add a new item to the menu when that new item is just created?
I don't want users to manually add this new item in Appearance -> Menus ...
Should I use the fallback_cb of wp_nav_menu()?
I need to use that for a custom post type and for posts of category:restaurant for example. I am also interested in being able to highlight the current visited item.
Thanks in advance.