WordPress at a glance
filter is not described

customize_sanitize_js_(id) filter-hook . WP 3.4.0

Filters a Customize setting value for use in JavaScript.

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

Usage

add_filter( 'customize_sanitize_js_(id)', 'filter_function_name_68', 10, 2 );
function filter_function_name_68( $value, $this ){
	// filter...

	return $value;
}
$value(mixed)
The setting value.
$this(WP_Customize_Setting)
WP_Customize_Setting instance.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

WP_Customize_Setting::js_value()
customize_sanitize_js_(id)
wp-includes/class-wp-customize-setting.php 785
$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );

Where the hook is used (in WP core)

wp-includes/class-wp-customize-setting.php 190
add_filter( "customize_sanitize_js_{$this->id}", $this->sanitize_js_callback, 10, 2 );