add_section( 'business_center_loader', array( 'title' => __('Loader','business-center'), 'description' => __( 'Loader section options.', 'business-center' ), 'panel' => 'business_center_theme_options_panel' ) ); // Loader enable setting and control. $wp_customize->add_setting( 'business_center_theme_options[loader_enable]', array( 'sanitize_callback' => 'business_center_sanitize_checkbox', 'default' => $options['loader_enable'] ) ); $wp_customize->add_control( 'business_center_theme_options[loader_enable]', array( 'label' => __( 'Enable loader', 'business-center' ), 'section' => 'business_center_loader', 'type' => 'checkbox', ) ); // Loader icons setting and control. $wp_customize->add_setting( 'business_center_theme_options[loader_icon]', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => $options['loader_icon'], ) ); $wp_customize->add_control( 'business_center_theme_options[loader_icon]', array( 'label' => __( 'Icon', 'business-center' ), 'description' => sprintf( __( 'Example fa-refresh see more at %s Font awesome %s.', 'business-center' ), '', '' ), 'section' => 'business_center_loader', 'active_callback' => 'business_center_is_loader_enable', ) );