How to get the active theme’s slug?

You can get the slug in the options table, stored under the name stylesheet.

echo get_option('stylesheet');

Leave a Comment