I’m trying to find where sparkling_header_menu() is defined. I am currently building a site that requires a login. I don’t want to show a menu when a user is not logged in so i’d like to create an if statement defining which menu to use based on if the user is logged in or not(See example). I see where you registered the menu types in the functions.php but can’t seem to figure out where to go from there. Any help would be appreciated.
I downloaded this plugin and it does not do what i need it to do. It only adds a login link to the navigation and handles redirects(kind of). It doesn’t even default to a login screen when a user is not logged in. This doesn’t hide menu items nor does it swap menu’s based on log in status. Please help me to better understand my original question about the sparkling_header_menu() function so that i can add the code i need to.