On this page
apply_filters( 'customize_changeset_save_data', array $data, array $context )
Filters the settings’ data that will be persisted into the changeset.
Description
Plugins may amend additional data (such as additional meta for settings) into the changeset with this filter.
Parameters
$dataarray-
Updated changeset data, mapping setting IDs to arrays containing a $value item and optionally other metadata.
$contextarray-
Filter context.
uuidstringChangeset UUID.titlestringRequested title for the changeset post.statusstringRequested status for the changeset post.date_gmtstringRequested date for the changeset post in MySQL format and GMT timezone.post_idint|falsePost ID for the changeset, or false if it doesn't exist yet.previous_dataarrayPrevious data contained in the changeset.managerWP_Customize_ManagerManager instance.
Source
File: wp-includes/class-wp-customize-manager.php. View all references
$data = apply_filters( 'customize_changeset_save_data', $data, $filter_context );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Manager::save_changeset_post() wp-includes/class-wp-customize-manager.php | Saves the post for the loaded changeset. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_changeset_save_data