add_section( 'callback_section_settings', array( 'title' => esc_html__( 'Callback Section', 'bizprime' ), 'priority' => 190, 'capability' => 'edit_theme_options', 'panel' => 'theme_front_page_section', ) ); // Setting - . $wp_customize->add_setting( 'theme_options[show-our-callback-section]', array( 'default' => $default['show-our-callback-section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[show-our-callback-section]', array( 'label' => esc_html__( 'Enable Callback Section', 'bizprime' ), 'section' => 'callback_section_settings', 'type' => 'checkbox', 'priority' => 100, ) ); // Setting - show-callback-section. $wp_customize->add_setting( 'theme_options[select-callback-page]', array( 'default' => $default['select-callback-page'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_dropdown_pages', ) ); $wp_customize->add_control( 'theme_options[select-callback-page]', array( 'label' => esc_html__( 'Select Callback Page', 'bizprime' ), 'section' => 'callback_section_settings', 'type' => 'dropdown-pages', 'priority' => 130, ) ); // Setting - . $wp_customize->add_setting( 'theme_options[show-page-link-button]', array( 'default' => $default['show-page-link-button'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[show-page-link-button]', array( 'label' => esc_html__( 'Enable Page Link Button', 'bizprime' ), 'section' => 'callback_section_settings', 'type' => 'checkbox', 'priority' => 140, ) ); /*button text*/ $wp_customize->add_setting( 'theme_options[callback-button-text]', array( 'default' => $default['callback-button-text'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'theme_options[callback-button-text]', array( 'label' => __( 'Callback Button Text', 'bizprime' ), 'description' => __( 'Removing the text from this section will disable the custom button on callback section', 'bizprime' ), 'section' => 'callback_section_settings', 'type' => 'text', 'priority' => 150, ) ); /*button url*/ $wp_customize->add_setting( 'theme_options[callback-button-link]', array( 'default' => $default['callback-button-link'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'theme_options[callback-button-link]', array( 'label' => __( 'URL Link', 'bizprime' ), 'section' => 'callback_section_settings', 'type' => 'text', 'priority' => 160, ) );