add_setting( 'bongoto_logo_max_height', array( 'default' => 40, 'sanitize_callback' => function( $v ) { return bongoto_sanitize_int_range( $v, 16, 200, 40 ); }, 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'bongoto_logo_max_height', array( 'label' => __( 'Logo Max Height (px)', 'bongoto' ), 'section' => 'bongoto_section_general', 'type' => 'number', 'input_attrs' => array( 'min' => 16, 'max' => 200, 'step' => 1 ), ) ); // --- Show site title/tagline toggle. $wp_customize->add_setting( 'bongoto_show_site_title', array( 'default' => true, 'sanitize_callback' => 'bongoto_customize_sanitize_checkbox', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'bongoto_show_site_title', array( 'label' => __( 'Display Site Title & Tagline', 'bongoto' ), 'section' => 'bongoto_section_general', 'type' => 'checkbox', ) ); // --- Site Icon toggle (WP core has its own, this is a "hide/show in header" helper). $wp_customize->add_setting( 'bongoto_show_site_icon', array( 'default' => false, 'sanitize_callback' => 'bongoto_customize_sanitize_checkbox', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'bongoto_show_site_icon', array( 'label' => __( 'Show Site Icon in Header', 'bongoto' ), 'description' => __( 'Toggle whether the WordPress site icon (favicon) also appears inline in the header.', 'bongoto' ), 'section' => 'bongoto_section_general', 'type' => 'checkbox', ) ); } add_action( 'customize_register', 'bongoto_customize_register_general', 20 );