add_section( 'single_post_setting', array( 'title' => esc_html__( 'Single Post Settings', 'blog-prime' ), 'priority' => 70, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Related Posts Enable Disable. $wp_customize->add_setting('ed_related_post', array( 'default' => $default['ed_related_post'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blog_prime_sanitize_checkbox', ) ); $wp_customize->add_control('ed_related_post', array( 'label' => esc_html__('Enable Related Posts', 'blog-prime'), 'section' => 'single_post_setting', 'type' => 'checkbox', 'priority' => 10, ) ); // Related Posts Section Title. $wp_customize->add_setting( 'related_post_title', array( 'default' => $default['related_post_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'related_post_title', array( 'label' => esc_html__( 'Section Title', 'blog-prime' ), 'section' => 'single_post_setting', 'type' => 'text', 'priority' => 20, ) ); if( !class_exists( 'Booster_Extension_Class') ){ // Related Posts Enable Disable. $wp_customize->add_setting('ed_author_section', array( 'default' => $default['ed_author_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blog_prime_sanitize_checkbox', ) ); $wp_customize->add_control('ed_author_section', array( 'label' => esc_html__('Enable Author Bio', 'blog-prime'), 'section' => 'single_post_setting', 'type' => 'checkbox', 'priority' => 30, ) ); }