The code is correct, it creates a widget where you can define any kind of menu and drag-n-drop it there. Calling `wp_nav_menu` means we have to stick to a predefined navigation menu, which is wrong from a user perspective.
The code is correct, it creates a widget where you can define any kind of menu and drag-n-drop it there. Calling `wp_nav_menu` means we have to stick to a predefined navigation menu, which is wrong from a user perspective.