add_section( 'archive_setting', array( 'title' => esc_html__( 'Archive Settings', 'asterisk-lite' ), 'capability' => 'edit_theme_options', 'panel' => 'asterisk_lite_options', ) ); $wp_customize->add_setting('enable_recommended_posts', array( 'default' => $asterisk_lite_default['enable_recommended_posts'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_checkbox', ) ); $wp_customize->add_control('enable_recommended_posts', array( 'label' => esc_html__('Enable Related Posts', 'asterisk-lite'), 'section' => 'archive_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('archive_recommended_posts_title', array( 'default' => $asterisk_lite_default['archive_recommended_posts_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('archive_recommended_posts_title', array( 'label' => esc_html__('Recommended Posts Title', 'asterisk-lite'), 'section' => 'archive_setting', 'type' => 'text', ) );