I have some code that adds a menu item to a menu using wp_nav_menu_{$menu->slug}_items
.
It's pretty easy to add a menu item as the first or last item of the menu, but I was wondering if there's any way to assign an order to the item, i.e. place it as the 3rd item in the menu.
If there's no method for that built into the filter, is there another way to achieve the same result?