Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
349 views
in Themes by
Hi,

Is there a standard way to identify the currently used theme in a plugin?
Q2A version: 1.8

1 Answer

+2 votes
by
selected by
 
Best answer

You could check the currently selected theme using:

require_once QA_INCLUDE_DIR . 'app/format.php';
if (qa_strtolower(qa_get_site_theme()) === 'snowflat') { ... }

Note this takes care of desktop and mobile while returning the theme.

by
+1
Thank you Pupi. It's quite useful.
...