add_section( 'single_post_setting', array( 'title' => esc_html__( 'Single Post Settings', 'blook' ), 'capability' => 'edit_theme_options', 'panel' => 'theme_theme_option_panel', ) ); $wp_customize->add_setting('ed_floating_next_previous_nav', array( 'default' => $default['ed_floating_next_previous_nav'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_checkbox', ) ); $wp_customize->add_control('ed_floating_next_previous_nav', array( 'label' => esc_html__('Enable Floating Next/Previous Post Nav', 'blook'), 'section' => 'single_post_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_related_post', array( 'default' => $default['ed_related_post'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_checkbox', ) ); $wp_customize->add_control('ed_related_post', array( 'label' => esc_html__('Enable Related Posts', 'blook'), 'section' => 'single_post_setting', 'type' => 'checkbox', ) ); $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__( 'Related Posts Section Title', 'blook' ), 'section' => 'single_post_setting', 'type' => 'text', ) );