add_section( 'appmela_news_section', array( 'capability' => 'edit_theme_options', 'priority' => 110, 'title' => __( 'News Section', 'appmela' ), 'description' => __( 'This is News Selection', 'appmela' ), 'panel' => 'appmela_front_option' ) ); //Enable News Section $wp_customize->add_setting( 'appmela_news_enable', array( 'default' => '', 'sanitize_callback' => 'appmela_sanitize_checkbox', ) ); $wp_customize->add_control( 'appmela_news_enable', array( 'label' => esc_html__( 'Show News Section', 'appmela' ), 'section' => 'appmela_news_section', 'type' => 'checkbox', 'priority' => 10, ) ); //News Title $wp_customize->add_setting( 'appmela_news_title', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'appmela_news_title', array( 'label' => __( 'News Title: ', 'appmela' ), 'section' => 'appmela_news_section', 'type' => 'text', 'priority' => 20, 'settings' => 'appmela_news_title', ) ); //News Content $wp_customize->add_setting( 'appmela_news_content', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'appmela_news_content', array( 'label' => __( 'News Content: ', 'appmela' ), 'section' => 'appmela_news_section', 'type' => 'textarea', 'priority' => 30, 'settings' => 'appmela_news_content', ) ); // News Category $wp_customize->add_setting('appmela_news_category', array( 'sanitize_callback' => 'appmela_sanitize_category', 'default' => 1, ) ); $wp_customize->add_control( new Appmela_Customize_Dropdown_Taxonomies_Control( $wp_customize, 'appmela_news_category', array( 'label' => __('News Category','appmela'), 'section' => 'appmela_news_section', 'type' => 'dropdown-taxonomies', 'priority' => 40, ) ) ); ?>