Registering Navigation Menus

Something else you do in your functions file is register locations for navigation menus. If you’re used to working with third party themes, you’ll have seen that many of them have a Primary Navigation checkbox you can select in the Menus admin screen, letting you add the menu you create to that location in the theme. If you want users to be able to do this in your theme, then you’ll need to use the register nav menus () function: