хук-фильтр
динамический since 3.4.0
customize_sanitize_js_{$this->id}
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( "customize_sanitize_js_{$this->id}", mixed $value, WP_Customize_Setting $setting )
Описание
Динамическая часть имени хука, $this->id, соответствует ID настройки.
Оригинал (английский)
The dynamic portion of the hook name, $this->id, refers to the setting ID.
Динамические части имени
{$this->id}- Динамическая часть имени хука.
Фильтруемое значение
Значение настройки.
Параметры
$value
mixed
обязательный
Значение настройки.
$setting
WP_Customize_Setting
обязательный
Экземпляр WP_Customize_Setting.
Исходный код
wp-includes/class-wp-customize-setting.php:807
$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );
История изменений
| Версия | Описание |
|---|---|
| 3.4.0 | Introduced. |

