add_section( 'blogcraft_filter_and_featured_post_section', array( 'title' => esc_html__( 'Filter Content and Latest Post Settings', 'blogcraft' ), 'capability' => 'edit_theme_options', 'priority' => 10, 'panel' => 'theme_option_panel', ) ); $wp_customize->add_setting('ed_top_filter', array( 'default' => $blogcraft_default['ed_top_filter'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blogcraft_sanitize_checkbox', ) ); $wp_customize->add_control('ed_top_filter', array( 'label' => esc_html__('Enable Filter Content', 'blogcraft'), 'section' => 'blogcraft_filter_and_featured_post_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_filter_and_featured_post_section', array( 'default' => $blogcraft_default['ed_filter_and_featured_post_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blogcraft_sanitize_checkbox', ) ); $wp_customize->add_control('ed_filter_and_featured_post_section', array( 'label' => esc_html__('Enable Latest Post', 'blogcraft'), 'section' => 'blogcraft_filter_and_featured_post_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'featured_post_section_title', array( 'default' => $blogcraft_default['featured_post_section_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'featured_post_section_title', array( 'label' => esc_html__( 'Choose Header Title', 'blogcraft' ), 'section' => 'blogcraft_filter_and_featured_post_section', 'type' => 'text', ) ); $wp_customize->add_setting('mg_filter_and_featured_post_section_cat', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blogcraft_sanitize_select', ) ); $wp_customize->add_control('mg_filter_and_featured_post_section_cat', array( 'label' => esc_html__('Choose category for Latest Post', 'blogcraft'), 'section' => 'blogcraft_filter_and_featured_post_section', 'type' => 'select', 'choices' => $blogcraft_post_category_list, ) );