Category Archives: Wordpress

User Specific Themes for WordPress

While creating my new website I noticed it wasn’t possible to have a specific theme for an individual user within WordPress. My aim was to change my personal user account to a development theme while visitors of the website would see a functional theme. The plugin I created allows the administrator or user to select which theme is used;

Theme selection dropdown
Select a theme for a specific user to use

WordPress provides a filter for changing the theme which is active on that page load, however this filter is executed before the user is identified. Therefore I had to create a session to store the user’s ID upon log in – the session variable is then removed on logout. If you would like to use this plugin, you can download it here.