In my admin page, I have a text field, for which I want to set the default_value as the active theme. I am getting the admin theme. But my requirement is to get the user theme.

Is there some how I could get theuser active theme.

1 Answer 1


The user default theme could be obtained by

  • If I active any other theme, will it give me back that theme name? Apr 2, 2015 at 7:09
  • This will return the theme which is set to 'Active and default'. So, if you change the default theme, it will return the name of that theme :-)
    – AjitS
    Apr 2, 2015 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.