packages/kirki-framework/field/src/Field.php
public function add_control( $wp_customize ) {

		$control_class = $this->control_class;

		// If no class-name is defined, early exit.
		if ( ! $control_class ) {
			return;
		}

		/**
		 * Allow filtering the arguments.
		 *
		 * @since 0.1
		 * @param array                $this->args   The arguments.
		 * @param WP_Customize_Manager $wp_customize The customizer instance.
		 * @return array                             Return the arguments.
		 */
		$args = apply_filters( 'kirki_field_add_control_args', $this->args, $wp_customize );
		$wp_customize->add_control( new $control_class( $wp_customize, $args['settings'], $args ) );
	}
public function add_control( $wp_customize ) {

		$control_class = $this->control_class;

		// If no class-name is defined, early exit.
		if ( ! $control_class ) {
			return;
		}

		/**
		 * Allow filtering the arguments.
		 *
		 * @since 0.1
		 * @param array                $this->args   The arguments.
		 * @param WP_Customize_Manager $wp_customize The customizer instance.
		 * @return array                             Return the arguments.
		 */
		$args = apply_filters( 'kirki_field_add_control_args', $this->args, $wp_customize );
		$wp_customize->add_control( new $control_class( $wp_customize, $args['settings'], $args ) );
	}
public function add_control ( $ wp_customize ) { $ control_class = $ this -> control_class ; // If no class-name is defined, early exit. if ( ! $ control_class ) { return ; } /**
		 * Allow filtering the arguments.
		 *
		 * @since 0.1
		 * @param array                $this->args   The arguments.
		 * @param WP_Customize_Manager $wp_customize The customizer instance.
		 * @return array                             Return the arguments.
		 */ $ args = apply_filters ( 'kirki_field_add_control_args' , $ this -> args , $ wp_customize ) ; $ wp_customize -> add_control ( new $ control_class ( $ wp_customize , $ args [ 'settings' ] , $ args ) ) ; }
Registers the control.

@access public
@since 0.1
@param WP_Customize_Manager $wp_customize The customizer instance.
@return void
Registers the control .