inc/customizer/colors.php
public function colors( WP_Customize_Manager $wp_customize ) {

		$wp_customize->add_panel(
			'colors',
			array(
				'title'       => esc_html__( 'Colors', 'rock' ),
				'description' => 'Get what you need.',
				'priority'    => 40,
			)
		);

		$wp_customize->add_section(
			'colors-scheme',
			array(
				'title' => esc_html__( 'Color Schemes', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-header',
			array(
				'title' => esc_html__( 'Header', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-menu',
			array(
				'title' => esc_html__( 'Menu', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-buttons',
			array(
				'title' => esc_html__( 'Buttons', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-content',
			array(
				'title' => esc_html__( 'Content', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-footer',
			array(
				'title' => esc_html__( 'Footer', 'rock' ),
				'panel' => 'colors',
			)
		);

		foreach ( $this->colors as $name => $args ) {

			$this->register_color_setting( $wp_customize, $name, $args );

		}

	}
public function colors( WP_Customize_Manager $wp_customize ) {

		$wp_customize->add_panel(
			'colors',
			array(
				'title'       => esc_html__( 'Colors', 'rock' ),
				'description' => 'Get what you need.',
				'priority'    => 40,
			)
		);

		$wp_customize->add_section(
			'colors-scheme',
			array(
				'title' => esc_html__( 'Color Schemes', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-header',
			array(
				'title' => esc_html__( 'Header', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-menu',
			array(
				'title' => esc_html__( 'Menu', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-buttons',
			array(
				'title' => esc_html__( 'Buttons', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-content',
			array(
				'title' => esc_html__( 'Content', 'rock' ),
				'panel' => 'colors',
			)
		);

		$wp_customize->add_section(
			'colors-footer',
			array(
				'title' => esc_html__( 'Footer', 'rock' ),
				'panel' => 'colors',
			)
		);

		foreach ( $this->colors as $name => $args ) {

			$this->register_color_setting( $wp_customize, $name, $args );

		}

	}
public function colors ( WP_Customize_Manager $ wp_customize ) { $ wp_customize -> add_panel ( 'colors' , array ( 'title' => esc_html__ ( 'Colors' , 'rock' ) , 'description' => 'Get what you need.' , 'priority' => 40 , ) ) ; $ wp_customize -> add_section ( 'colors-scheme' , array ( 'title' => esc_html__ ( 'Color Schemes' , 'rock' ) , 'panel' => 'colors' , ) ) ; $ wp_customize -> add_section ( 'colors-header' , array ( 'title' => esc_html__ ( 'Header' , 'rock' ) , 'panel' => 'colors' , ) ) ; $ wp_customize -> add_section ( 'colors-menu' , array ( 'title' => esc_html__ ( 'Menu' , 'rock' ) , 'panel' => 'colors' , ) ) ; $ wp_customize -> add_section ( 'colors-buttons' , array ( 'title' => esc_html__ ( 'Buttons' , 'rock' ) , 'panel' => 'colors' , ) ) ; $ wp_customize -> add_section ( 'colors-content' , array ( 'title' => esc_html__ ( 'Content' , 'rock' ) , 'panel' => 'colors' , ) ) ; $ wp_customize -> add_section ( 'colors-footer' , array ( 'title' => esc_html__ ( 'Footer' , 'rock' ) , 'panel' => 'colors' , ) ) ; foreach ( $ this -> colors as $ name => $ args ) { $ this -> register_color_setting ( $ wp_customize , $ name , $ args ) ; } }
Register color panel, sections, controls, and settings.

@action customize_register
@since  1.0.0

@param WP_Customize_Manager $wp_customize
Register color panel sections controls and settings .