Title: wp_get_theme() alternative
Last modified: October 8, 2018

---

# wp_get_theme() alternative

 *  Resolved [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_get_theme-alternative/)
 * Hi!
 * I found this great plugin to preview a new theme for a project I am doing. Great
   stuff!
 * In my project I am using 2 sets of menu’s. One for theme “NEW” and one for theme“
   OLD”. In PHP I use **wp_get_theme()** to retrieve the active theme to show the
   correct menu for each theme.
 * Only problem is, while previewing theme “NEW”, theme “OLD” is always considered
   ACTIVE in WP. Figures…! 🙂
 * Does your plugin offer a similar PHP function to **wp_get_theme()** to retrieve
   the current VIEWED theme?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_get_theme-alternative/#post-10760863)
 * Hi Erik,
 * Glad to help:
 * 1) “Does your plugin offer a similar PHP function to wp_get_theme() to retrieve
   the current VIEWED theme?”
 * Not currently, but I like the idea and will try to implement such a function 
   in the next version of Theme Switcha.
 * Thank you for the feedback!
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/wp_get_theme-alternative/#post-10889254)
 * Just to follow up, the upcoming version (1.8) provides a function to get the 
   current active theme:
 * `theme_switcha_active_theme()`
 * Thanks again, Erik!
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/wp_get_theme-alternative/#post-10889258)
 * Awesome! Thanks a bunch!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_get_theme() alternative’ is closed to new replies.

 * ![](https://ps.w.org/theme-switcha/assets/icon-256x256.png?rev=1501320)
 * [Theme Switcha - Easily Switch Themes for Development and Testing](https://wordpress.org/plugins/theme-switcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-switcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-switcha/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-switcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-switcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-switcha/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/wp_get_theme-alternative/#post-10889258)
 * Status: resolved