WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to code "Restore Defaults" button into a plugin options page?

I'm writing a plugin right now that has sets up some default values on activation (via register_activation_hook), and I'd like to give users the option to restore those defaults again with a click. Possible?


share|improve this question
up vote 0 down vote accepted

Nevermind, answered my own question:


Used that to update all the text and drop downs. Couldn't get it to work with my checkboxes, but a few other lines of jQuery took care of those. I like the idea of just auto filling the form with the defaults, rather than submitting it right away.

share|improve this answer

Your Answer


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.