packages/kirki-framework/core/src/Init.php
public function register_control_types() {
		global $wp_customize;

		$section_types = apply_filters( 'kirki_section_types', [] );
		foreach ( $section_types as $section_type ) {
			$wp_customize->register_section_type( $section_type );
		}

		$this->control_types = $this->default_control_types();
		if ( ! class_exists( 'WP_Customize_Code_Editor_Control' ) ) {
			unset( $this->control_types['code_editor'] );
		}
		foreach ( $this->control_types as $key => $classname ) {
			if ( ! class_exists( $classname ) ) {
				unset( $this->control_types[ $key ] );
			}
		}

		$skip_control_types = apply_filters(
			'kirki_control_types_exclude',
			[
				'\Kirki\Control\Repeater',
				'\WP_Customize_Control',
			]
		);

		foreach ( $this->control_types as $control_type ) {
			if ( ! in_array( $control_type, $skip_control_types, true ) && class_exists( $control_type ) ) {
				$wp_customize->register_control_type( $control_type );
			}
		}
	}
public function register_control_types() {
		global $wp_customize;

		$section_types = apply_filters( 'kirki_section_types', [] );
		foreach ( $section_types as $section_type ) {
			$wp_customize->register_section_type( $section_type );
		}

		$this->control_types = $this->default_control_types();
		if ( ! class_exists( 'WP_Customize_Code_Editor_Control' ) ) {
			unset( $this->control_types['code_editor'] );
		}
		foreach ( $this->control_types as $key => $classname ) {
			if ( ! class_exists( $classname ) ) {
				unset( $this->control_types[ $key ] );
			}
		}

		$skip_control_types = apply_filters(
			'kirki_control_types_exclude',
			[
				'\Kirki\Control\Repeater',
				'\WP_Customize_Control',
			]
		);

		foreach ( $this->control_types as $control_type ) {
			if ( ! in_array( $control_type, $skip_control_types, true ) && class_exists( $control_type ) ) {
				$wp_customize->register_control_type( $control_type );
			}
		}
	}
public function register_control_types ( ) { global $ wp_customize ; $ section_types = apply_filters ( 'kirki_section_types' , [ ] ) ; foreach ( $ section_types as $ section_type ) { $ wp_customize -> register_section_type ( $ section_type ) ; } $ this -> control_types = $ this -> default_control_types ( ) ; if ( ! class_exists ( 'WP_Customize_Code_Editor_Control' ) ) { unset ( $ this -> control_types [ 'code_editor' ] ) ; } foreach ( $ this -> control_types as $ key => $ classname ) { if ( ! class_exists ( $ classname ) ) { unset ( $ this -> control_types [ $ key ] ) ; } } $ skip_control_types = apply_filters ( 'kirki_control_types_exclude' , [ '\Kirki\Control\Repeater' , '\WP_Customize_Control' , ] ) ; foreach ( $ this -> control_types as $ control_type ) { if ( ! in_array ( $ control_type , $ skip_control_types , true ) && class_exists ( $ control_type ) ) { $ wp_customize -> register_control_type ( $ control_type ) ; } } }
Register control types
Register control types