Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Maybe get_option will do the trick

http://codex.wordpress.org/Function_Reference/get_option

share|improve this answer
    
Would you please expand upon this answer? Perhaps provide an example of how get_option might work. –  s_ha_dum Feb 11 '13 at 14:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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