I need to assign the "active" theme via script. Anyone know the API call needed to do this? Also, how do I retrieve the current theme via script (PHP)?
+2
A:
Update current_theme
option:
update_option('current_theme', '[theme name]');
To get the theme's name use:
$themes = get_themes();
Harmen
2010-02-27 16:43:01
Thanks Harmen. I appreciate it!
Scott B
2010-02-27 17:10:34