WordPress Nav Menu Generator

With this generator, create as many menu codes as you want in your WordPress theme.
wp-skills.com

function wpskills_register_nav_menus() {

    $locations = array(
           'primary-menu' => __( 'Primary Menu', 'text-domain' ),
        
    );
    register_nav_menus( $locations );

}
add_action( 'init', 'wpskills_register_nav_menus' );