I am looking to reset or delete all options on theme switch. Currently when I switch themes my options in my current custom theme that I am developing, will transfer to its associated child themes. This should not happen.

How do i delete all options upon theme switch?

  • Can you select these options? Can you show, how will you select them? Then I'll do the rest ;) Jul 4, 2013 at 19:13
  • Do you mean all site options (ie, stuff set with update_option()) or just the theme's options? If the latter, use remove_theme_mods().
    – Pat J
    Jul 4, 2013 at 20:23


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.