- Issue created by @swirt
It would be helpful to have a pair of methods that can move or copy a menu item (and optionally its children) from one menu to another.
moveMenuItemToOtherMenu(string $menu_item_name, string $parent_name, string $new_menu_name, string $new_parent_name, bool $bring_children)
copyMenuItemToOtherMenu(string $menu_item_name, string $parent_name, string $new_menu_name, string $new_parent_name, bool $bring_children)
The $parent_name is mainly to assist in targeting the finding of the original menu item. Any additional moving to tuck the menu item next to a sibling could be done with a separate call to changeMenuItem() or changeMenuItemSibling().
Active
1.0
Code