get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; //add custom logo uploader to customizer //Logo $wp_customize->add_section( 'bootcut_advanced_options', array( 'title' => 'Logo', 'priority' => 201 ) ); $wp_customize->add_setting( 'bootcut_logo_image', array( 'default' => '', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', ) ); } add_action( 'customize_register', 'bootcut_customize_register' ); //unction sanitize_text( $input ) { // return wp_kses_post( force_balance_tags( $input ) ); //} /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function bootcut_customize_preview_js() { wp_enqueue_script( 'bootcut_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); } add_action( 'customize_preview_init', 'bootcut_customize_preview_js' );