add_section( 'ticker_options' , array( 'title' => __( 'Ticker Options', 'avenews' ), 'panel' => 'avenews_option_panel', ) ); $wp_customize->add_setting( 'avenews_options[enable_ticker_post]', array( 'default' => $default_options['enable_ticker_post'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_ticker_post]', array( 'label' => esc_html__('Enable Ticker/News Post', 'avenews'), 'section' => 'ticker_options', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[ticker_post_category]', array( 'default' => $default_options['ticker_post_category'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control(new Avenews_Dropdown_Taxonomies_Control( $wp_customize, 'avenews_options[ticker_post_category]', array( 'label' => esc_html__('Ticker/News Post Category', 'avenews'), 'section' => 'ticker_options', ) ) ); $wp_customize->add_setting( 'avenews_options[enable_ticker_post_image]', array( 'default' => $default_options['enable_ticker_post_image'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_ticker_post_image]', array( 'label' => esc_html__('Enable Post Thumbnail', 'avenews'), 'section' => 'ticker_options', 'type' => 'checkbox', ) );