Feature Request: Reset all user customizations

[ad_1]

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 called clear_user_styles_customizations() on init 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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer