add_setting( 'bc_watch_header_check' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_checkbox', ) ); $wp_customize->add_control( 'bc_watch_header_check', array( 'label' => __( 'Show Button?', 'broadcast-lite' ), 'description' => __( 'Check this box to show the Watch button in the top right. This will show in place of your main navigation hamburger button.', 'broadcast-lite'), 'section' => 'bc_logo_watch_now_header_settings', 'settings' => 'bc_watch_header_check', 'type' => 'checkbox', ) ); // END SETTING // SETTING - bc_primary_font $wp_customize->add_setting( 'bc_watch_header_style' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => 'twitch' ) ); $wp_customize->add_control( 'bc_watch_header_style', array( 'label' => __( 'Button Styles', 'broadcast-lite' ), 'description' => __( 'Choose the primary button styles.', 'broadcast-lite'), 'type' => 'radio', 'choices' => array( 'twitch' => 'Twitch', 'youtube' => 'YouTube', ), 'section' => 'bc_logo_watch_now_header_settings', 'settings' => 'bc_watch_header_style', ) ); // SETTING - bc_vods_title $wp_customize->add_setting( 'bc_watch_header_title' , array( 'default' => 'Watch on Twitch', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_watch_header_title', array( 'label' => __( 'Button Text', 'broadcast-lite' ), 'description' => __( 'Change the text on this button.', 'broadcast-lite' ), 'type' => 'text', 'section' => 'bc_logo_watch_now_header_settings', 'settings' => 'bc_watch_header_title', ) ); // SETTING - bc_vods_title $wp_customize->add_setting( 'bc_watch_header_url' , array( 'default' => 'https://www.twitch.tv/subscribe', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_watch_header_url', array( 'label' => __( 'Button URL', 'broadcast-lite' ), 'description' => __( 'Change the URL on this button.', 'broadcast-lite' ), 'type' => 'text', 'section' => 'bc_logo_watch_now_header_settings', 'settings' => 'bc_watch_header_url', ) ); } add_action( 'customize_register', 'broadcast_customize_watch_now_header_settings' );