apply_filters( “customize_sanitize_js_{$this->id}”, mixed $value, WP_Customize_Setting $setting )

In this article

Filters a Customize setting value for use in JavaScript.

Description

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

Parameters

$valuemixed
The setting value.
$settingWP_Customize_Setting

Source

$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.