Set active theme via URL
I created simple class which will do exactly what you want. To switch theme you must add theme GET parameter to your site url with name of the theme. http://example.com/?theme=twentyfifteen Selected theme will also be stored in cookie so next time the user enters the site he will have earlier selected theme. class WPSE_287356_Theme_Switcher { … Read more