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('Business_Insights_Customize_Section_Upsell'); // Register sections. $wp_customize->add_section( new Business_Insights_Customize_Section_Upsell( $wp_customize, 'theme_upsell', array( 'title' => esc_html__('Business Insights', 'business-insights'), 'pro_text' => esc_html__('Upgrade To Pro', 'business-insights'), 'pro_url' => 'https://www.themeinwp.com/theme/business-insights-pro/', 'priority' => 1, ) ) ); } add_action('customize_register', 'business_insights_customize_register'); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * * @since 1.0.0 */ function business_insights_customize_preview_js() { wp_enqueue_script('business_insights_customizer', get_template_directory_uri().'/js/customizer.js', array('customize-preview'), '20130508', true); } add_action('customize_preview_init', 'business_insights_customize_preview_js'); function business_insights_customizer_css() { wp_enqueue_script('business_insights_customize_controls', get_template_directory_uri().'/assets/twp/js/customizer-admin.js', array('customize-controls')); } add_action('customize_controls_enqueue_scripts', 'business_insights_customizer_css', 0);