[wp-trac] [WordPress Trac] #28721: Scheduled changes for the customizer
WordPress Trac
noreply at wordpress.org
Wed Jan 7 08:08:26 UTC 2015
#28721: Scheduled changes for the customizer
-----------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-----------------------------+-----------------------------
Comment (by westonruter):
I have a working patch that adds support for scheduling Customizer
settings. See #30937. The underlying mechanism for this is the proposed
“Customizer transaction”. This not only facilitates scheduled settings,
but it also gives us Customizer revisions.
With that patch, you can use WP-CLI to schedule a change to the `blogname`
via:
{{{
wp post create \
--post_type=wp_transaction \
--post_name=$(cat /proc/sys/kernel/random/uuid) \
--post_date_gmt="2016-01-01 00:00:00" \
--post_status="future" \
--post_content='{"blogname":"The 2016 Blog","blogdescription":"So much
better than 2015!"}'
}}}
Obviously a nicer `wp transaction` command abstraction would be needed,
but this is a proof of concept.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28721#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list