tags:

views:

21

answers:

1

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
Thanks Harmen. I appreciate it!
Scott B