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 new option to the theme and register default setting for one time only

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


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


I think what you are looking for was answered here:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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