[wp-trac] [WordPress Trac] #31075: Customizer Global Reset
WordPress Trac
noreply at wordpress.org
Tue Jan 20 15:37:08 UTC 2015
#31075: Customizer Global Reset
-----------------------------+-----------------------------
Reporter: nvartolomei | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
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:
1. hook to wp_loaded (there we are pretty sure everyone registered their
settings with customizer)
2. look under each settings
2. a) if it is a theme_mod just remove it
2. 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?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31075>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list