get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; /*theme option panel details*/ require get_template_directory().'/inc/customizer/theme-option.php'; // Register custom section types. $wp_customize->register_section_type('Galway_Lite_Customize_Section_Upsell'); // Register sections. $wp_customize->add_section( new Galway_Lite_Customize_Section_Upsell( $wp_customize, 'theme_upsell', array( 'title' => esc_html__('Galway Premium', 'galway-lite'), 'pro_text' => esc_html__('Upgrade To Pro', 'galway-lite'), 'pro_url' => 'https://1.envato.market/DrnKa', 'priority' => 1, ) ) ); } add_action('customize_register', 'galway_lite_customize_register'); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * * @since 1.0.0 */ function galway_lite_customize_preview_js() { wp_enqueue_script('galway_lite_customizer', get_template_directory_uri().'/js/customizer.js', array('customize-preview'), '20130508', true); } add_action('customize_preview_init', 'galway_lite_customize_preview_js'); function galway_lite_customizer_css() { wp_enqueue_script('galway_lite_customize_controls', get_template_directory_uri().'/assets/twp/js/customizer-admin.js', array('customize-controls')); } add_action('customize_controls_enqueue_scripts', 'galway_lite_customizer_css', 0);