get_setting('blogname')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. // $wp_customize->get_setting('display_header_text')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->get_setting('header_textcolor')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->get_setting('background_color')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->get_setting('header_image')->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. } add_action('customize_register', 'akbar_customize_register'); //add_action('customize_register', 'akbar_customize_register'); function akbar_sanitize_checkbox($checked = null) { return (bool)isset($checked) && true === $checked; } /** * Render the site title for the selective refresh partial. * * @access public * * @since 1.0.0 * * @return void */ function akbar_partial_blogname() { bloginfo('name'); } /** * Render the site tagline for the selective refresh partial. * * @access public * * @since 1.0.0 * * @return void */ function akbar_partial_blogdescription() { bloginfo('description'); } function akbar_layout_options($name, $default = false) { $options = (get_option('akbar_layout_options')) ? get_option('akbar_layout_options') : null; if (isset($options[$name])) { return apply_filters('akbar_layout_options_$name', $options[$name]); } return apply_filters('akbar_layout_options_$name', $default); }