Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

registered-unregistered-users-menus

// Register Navigation Menus
function custom_navigation_menus() {

	$locations = array(
		'registered_users_menu' => __( 'Registered User Menu', 'text_domain' ),
		'unregistered_users_menu' => __( 'Unregistered User Menu', 'text_domain' ),
	);
	register_nav_menus( $locations );

}

// Hook into the 'init' action
add_action( 'init', 'custom_navigation_menus' );