I have a plugin that I'm using to switch themes for a specific user for development. When logged in as that user they see the different style sheet but the themes files, function.php, header.php, etc are the active theme for everyone else.
What I am doing wrong?
function change_user_theme($template) {
global $user_ID;
if ( in_array( $user_ID, array( 5 ) ) ) {
$template = 'fezmobile';
} else {
$template = 'fezforprez';
}
return $template;
}
add_filter('template', 'change_user_theme');
add_filter('stylesheet', 'change_user_theme');
add_filter('option_template', 'change_user_theme');
add_filter('option_stylesheet', 'change_user_theme');