add_section( 'featured_section', array( 'priority' => 1, 'panel' => 'author-blog', 'title' => __( 'Featured Section', 'author-blog' ), 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'featured_section_on_off', array( 'transport' => 'refresh', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'author_blog_sanitize_checkbox', 'default' => false, ) ); $wp_customize->add_control( 'featured_section_on_off', array( 'label' => __( 'Featured Section On//Off', 'author-blog' ), 'section' => 'featured_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'featured_categories', array( 'transport' => 'refresh', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'author_blog_category_sanitize', ) ); $wp_customize->add_control( new author_blog_Customize_Control_Multiple_Select( $wp_customize, 'featured_categories', array( 'label' => __( 'Select Posts Categries', 'author-blog' ), 'section' => 'featured_section', 'type' => 'author-blog-multiple-select', 'choices' => author_blog_get_categories(), ) ) );