OK, this may be a dumb question. Is it possible, using PHP, to detect which theme has been set for use by Wordpress ? If so, how's it done ?
If you only need the current theme name, you can use get_current_theme().
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
This snippet will get the current theme info for you.
$theme_data = wp_get_theme();
See wp_get_theme for more information.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago
1 year ago