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)?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Update
current_theme
option:To get the theme's name use:
In current Wordpress version 3.4.2 you need to update 3 options to switch to another theme(minihyper - in my case)
The first two options are key, the third really does nothing except maybe you can use this option somewhere in code to display current theme name.
Update:
Here is a true way:
Example with minihyper: