• Resolved Erik Molenaar

    (@erikmolenaar)


    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

    (@specialk)

    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

    (@specialk)

    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

    (@erikmolenaar)

    Awesome! Thanks a bunch!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_get_theme() alternative’ is closed to new replies.