Custom Menu for different viewers

custom-menuI once thought I need different primary menus for different viewers.
In best case those users have a GET parameter which decides which menu has to be shown.

For Example:
You go into WordPress and add a menu with a name of your choice. I chose “music”.
Now if you want somebody view the music menu you have the parameter You can give the slug of every menu you have.

So thats awesome as you have multiple menus which you can show different people. We tested it with twentytwelve and Genesis Framework. It might happen it is not 100% compatible with you theme, then you need to change line 67 to your menu.

In case you leave the GET Parameter empty nothing happen at all.
download from wordpress org