Support

Account

Home Forums Bug Reports Select2 not initializing when adding new items to menu Reply To: Select2 not initializing when adding new items to menu

  • The fix I found for my ACF addon uses an event that WordPress triggers after a new menu item has been added.

    Location: /wp-admin/js/nav-menu.js Line #1017
    Event: menu-item-added

    The event passes along the new menu item markup, which can then be searched for any select fields with stylized UI and initialized if found.