Title: customize_changeset_save_data
Published: December 7, 2016
Last modified: February 24, 2026

---

# apply_filters( ‘customize_changeset_save_data’, array $data, array $context )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#wp--skip-link--target)

Filters the settings’ data that will be persisted into the changeset.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#description)󠁿

Plugins may amend additional data (such as additional meta for settings) into the
changeset with this filter.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#parameters)󠁿

 `$data`array

Updated changeset data, mapping setting IDs to arrays containing a $value item and
optionally other metadata.

`$context`array

Filter context.

 * `uuid` string
 * Changeset UUID.
 * `title` string
 * Requested title for the changeset post.
 * `status` string
 * Requested status for the changeset post.
 * `date_gmt` string
 * Requested date for the changeset post in MySQL format and GMT timezone.
 * `post_id` int|false
 * Post ID for the changeset, or false if it doesn’t exist yet.
 * `previous_data` array
 * Previous data contained in the changeset.
 * `manager` [WP_Customize_Manager](https://developer.wordpress.org/reference/classes/wp_customize_manager/)
 * Manager instance.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#source)󠁿

    ```php
    $data = apply_filters( 'customize_changeset_save_data', $data, $filter_context );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-manager.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-manager.php#L2905)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-manager.php#L2905-L2905)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Customize_Manager::save_changeset_post()](https://developer.wordpress.org/reference/classes/wp_customize_manager/save_changeset_post/)`wp-includes/class-wp-customize-manager.php` |

Saves the post for the loaded changeset.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/customize_changeset_save_data/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcustomize_changeset_save_data%2F)
before being able to contribute a note or feedback.