Specific theme for non logged in users
Functions – under the hood While is_user_logged_in() can be used to determine the difference between a guest and a logged in (and therefore registered) user, switch_theme( $stylesheet ) alters actual database entries in the {$wpdb->options} table: update_option( ‘template’, $template ); update_option( ‘stylesheet’, $stylesheet ); update_option( ‘current_theme’, $new_name ); if ( count( $wp_theme_directories ) > 1 … Read more