#31075 closed feature request (duplicate)
Customizer Global Reset
Reported by: | nvartolomei | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | Customize | Keywords: | |
Focuses: | Cc: |
Description
Hello,
Why we still don't have a reset button along with save? This would be very useful.
I came up with the following method of resetting everything:
- hook to wp_loaded (there we are pretty sure everyone registered their settings with customizer)
- look under each settings
- a) if it is a theme_mod just remove it
- b) if is an option check if it not one of WordPress' fields and remove them too
Another way (maybe better) would be to set them up with settings default value if one exists.
What do you think?
Change History (2)
Note: See
TracTickets for help on using
tickets.
Duplicate of #21666.