add_section( 'theme_style' , array( 'title' => esc_html__('Theme Style Settings', 'radix-multipurpose'), 'priority' => 110, ) ); // enable / disable custom color settings $wp_customize->add_setting('custom_color_enable', array( 'capability' => 'edit_theme_options', 'default' => false, 'sanitize_callback' => 'radix_multipurpose_sanitize_checkbox', )); $wp_customize->add_control('custom_color_enable',array( 'type' => 'checkbox', 'label' => esc_html__('Enable custom color skin','radix-multipurpose'), 'section' => 'theme_style', ) ); // link color settings $wp_customize->add_setting('link_color', array( 'capability' => 'edit_theme_options', 'default' => '#82b440', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'link_color', array( 'label' => esc_html__( 'Skin color', 'radix-multipurpose' ), 'section' => 'theme_style', 'settings' => 'link_color', ) ) ); } add_action( 'customize_register', 'radix_multipurpose_custom_color' );