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

$data

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

$context

Filter context.<br>

  • 'uuid'
    (string) Changeset UUID.<br>
  • 'title'
    (string) Requested title for the changeset post.<br>
  • 'status'
    (string) Requested status for the changeset post.<br>
  • 'date_gmt'
    (string) Requested date for the changeset post in MySQL format and GMT timezone.<br>
  • 'post_id'
    (int|false) Post ID for the changeset, or false if it doesn't exist yet.<br>
  • 'previous_data'
    (array) Previous data contained in the changeset.<br>
  • 'manager'
    (WP_Customize_Manager) Manager instance.<br>


Source

File: wp-includes/class-wp-customize-manager.php

View on GitHub


Changelog

Changelog
Version Description
4.7.0 Introduced.