add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'maybe_hash_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Primary Color', 'bgbn' ), 'priority' => $priority->add() ) ) ); // Secondary Color $setting_id = $setting_prefix . '-secondary'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'maybe_hash_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Secondary Color', 'bgbn' ), 'priority' => $priority->add() ) ) ); // Text Color $setting_id = $setting_prefix . '-text'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'maybe_hash_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Text Color', 'bgbn' ), 'priority' => $priority->add() ) ) ); // Detail Color $setting_id = $setting_prefix . '-detail'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'maybe_hash_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Detail Color', 'bgbn' ), 'priority' => $priority->add() ) ) ); } endif;