Yes that is correct. That is why you would make the style user selectable (by checking the box and saving) , but hide it with a template edit such as this. I could then give the user a link, or use rewrites in my htaccess, or write a plugin that selects the style.
Why are people posting to this thread when they seem to have no need for it?
I only released it here as it is something I use and find personally useful and thought others may feel the same.
Let me give you a real life scenario which may help you understand where this has a purpose, and indeed why I wrote it.
- My site has 2 styles which users can choose.
- My site also has a mobile friendly style.
- A plugin detects if a mobile device has connected to my site and then changes the style to the mobile style automatically
- For a plugin (or anything for that matter) to be able to change the style for a non-admin user, the style must be user selectable
- I don't want desktop PC users to be able to select the mobile friendly style as it looks crap on a desktop PC
Solution?
Hide the styles which I don't want PC users to manually select whilst allowing the system to still assign them.
Thus this template edit.