Duplicate Menu
-
I’d like to create a duplicate menu in the custom menus area. As it currently stands, I have added the link and the case that forms a new menu (but doesn’t copy the menu_items from the old menu). See https://pastebin.com/WeVABUPP Or below,
LINK (after
</div><!-- END .delete-action -->
around line 568 before the <?php endif; ?>):<div class="duplicate-action"> <a class="submitduplicate duplication menu-duplicate" href="<?php echo esc_url( wp_nonce_url( admin_url('nav-menus.php?action=duplicate&menu=' . $nav_menu_selected_id), 'duplicate-nav_menu-' . $nav_menu_selected_id ) ); ?>"><?php _e('Duplicate Menu'); ?></a> </div><!-- END .duplicate-action -->
CASE (at line 275 after the delete CASE and before the update CASE):
[Code moderated as per the Forum Rules. Please use the pastebin]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Duplicate Menu’ is closed to new replies.