Title: customize_update_{$this-&gt;type}
Published: April 25, 2014
Last modified: April 28, 2025

---

# do_action( “customize_update_{$this->type}”, mixed $value, WP_Customize_Setting $setting )

## In this article

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

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

Fires when the [WP_Customize_Setting::update()](https://developer.wordpress.org/reference/classes/wp_customize_setting/update/)
method is called for settings not handled as theme_mods or options.

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

The dynamic portion of the hook name, `$this->type`, refers to the type of setting.

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

 `$value`mixed

Value of the setting.

`$setting`[WP_Customize_Setting](https://developer.wordpress.org/reference/classes/wp_customize_setting/)

[WP_Customize_Setting](https://developer.wordpress.org/reference/classes/wp_customize_setting/)
instance.

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

    ```php
    do_action( "customize_update_{$this->type}", $value, $this );
    ```

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

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

| Used by | Description | 
| [WP_Customize_Setting::update()](https://developer.wordpress.org/reference/classes/wp_customize_setting/update/)`wp-includes/class-wp-customize-setting.php` |

Save the value of the setting, using the related API.

  |

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

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

## User Contributed Notes

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