Created
August 20, 2015 18:22
-
-
Save jeffrainey/3b78740a8c4c1738cab9 to your computer and use it in GitHub Desktop.
Create a menu item using wp_get_nav_menu_items. This simply adds the item to the end. The cool thing it appears in the menus editor too! It would be nice to add ability to sort in the menu and remove the item using the menu editor.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think line 33 should be
$item->menu_item_parent = $parent;