Feature Request: Reset all user customizations
-
In addition to the 6 available Generation options, I’d like to request a 7th: “Reset all user theme customizations” which executes
clear_user_styles_customizations()
once without the other “Overwrite” functions.Some malformed template code was cached by the Editor during a sandbox experiment. I was stuck in this Catch-22: the Editor kept erroring out (“Saving failed”) when I attempted repairs. “Clear Customizations” on template files corrected it.
This dropdown only appears if the system detects customizations, and there technically weren’t any the second time it occurred. Not knowing where this cached data lives, I could either blow away the sandbox (not great) or force the purge myself. So in
functions.php
, I calledclear_user_styles_customizations()
oninit
and it worked like a charm.A “Reset” option also saves time – devs won’t have to click multiple dropdowns on each template and template part.
- The topic ‘Feature Request: Reset all user customizations’ is closed to new replies.