The returned array consists of a merge of three sources:
1. If the theme is not currently active, then the base array is any stashed
theme mods that were modified previously but never published.
2. The values from the current changeset, if it exists.
3. If the user can customize, the values parsed from the incoming
$_POST['customized'] JSON data.
4. Any programmatically-set post values via WP_Customize_Manager::set_post_value().
The name "unsanitized_post_values" is a carry-over from when the customized
state was exclusively sourced from $_POST['customized']. Nevertheless,
the value returned will come from the current changeset post and from the
incoming post data.
public unsanitized_post_values ( array $args = [] ) : array | ||
$args | array | { Args. @type bool $exclude_changeset Whether the changeset values should also be excluded. Defaults to false. @type bool $exclude_post_data Whether the post input values should also be excluded. Defaults to false when lacking the customize capability. } |
return | array |