Function: _wp_customize_publish_changeset

_wp_customize_publish_changeset( string $new_status, string $old_status, WP_Post $changeset_post )

Publishes a snapshot's changes.

Shortcut: wcpc

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$new_status string

New post status.

$old_status string

Old post status.

$changeset_post WP_Post

Changeset post object.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.