I am using the following lines to check if the theme setting already exist or set but it's not working:

if (get_theme_mod('mysetting')==FALSE) {

Aside from get_theme_mod, how to really check if the theme setting is already set? Thanks.

1 Answer 1


Maybe get_option will do the trick


  • Would you please expand upon this answer? Perhaps provide an example of how get_option might work.
    – s_ha_dum
    Feb 11, 2013 at 14:20

Your Answer

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

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