0

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

1

1 Answer 1

1

I think what you are looking for was answered here:

0

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.