customize_sanitize_js_{$this->id}

customize_sanitize_js_{$this->id}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('customize_sanitize_js_{$this->id}') is found 1 times:

  • /wp-includes/class-wp-customize-setting.php line 802
    		 *
    		 * @param mixed                $value   The setting value.
    		 * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    		 */
    		$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );
    
    		if ( is_string( $value ) ) {
    			return html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
    		}
    
    		return $value;