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 want to add & reset default value for my theme options while activate and deactivate a theme

More clearly something like this

if(theme active)
  add_option(); 
  // add new option to the theme and register default setting for one time only

if(theme deactivate)
   delete_option();
  // reset current option and delete default setting  for one time only

Question

How know is theme active or not? What a function or hook for this one. Let me know

share|improve this question
    
add comment

1 Answer

up vote 1 down vote accepted

Hi @haha:

I think what you are looking for was answered here:

share|improve this answer
    
Thanks MikeSchinkel –  haha Feb 3 '11 at 17:28
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.