packages/kirki-framework/control-color/src/Field/Color.php
public function filter_setting_args( $args, $wp_customize ) {

		if ( $args['settings'] !== $args['settings'] ) {
			return $args;
		}

		// Set the sanitize-callback if none is defined.
		if ( ! isset( $args['sanitize_callback'] ) || ! $args['sanitize_callback'] ) {
			$args['sanitize_callback'] = [ __CLASS__, 'sanitize' ];

			// If this is a hue control then its value should be an integer.
			if ( isset( $args['mode'] ) && 'hue' === $args['mode'] ) {
				$args['sanitize_callback'] = 'absint';
			}
		}
		return $args;
	}
public function filter_setting_args( $args, $wp_customize ) {

		if ( $args['settings'] !== $args['settings'] ) {
			return $args;
		}

		// Set the sanitize-callback if none is defined.
		if ( ! isset( $args['sanitize_callback'] ) || ! $args['sanitize_callback'] ) {
			$args['sanitize_callback'] = [ __CLASS__, 'sanitize' ];

			// If this is a hue control then its value should be an integer.
			if ( isset( $args['mode'] ) && 'hue' === $args['mode'] ) {
				$args['sanitize_callback'] = 'absint';
			}
		}
		return $args;
	}
public function filter_setting_args ( $ args , $ wp_customize ) { if ( $ args [ 'settings' ] !== $ args [ 'settings' ] ) { return $ args ; } // Set the sanitize-callback if none is defined. if ( ! isset ( $ args [ 'sanitize_callback' ] ) || ! $ args [ 'sanitize_callback' ] ) { $ args [ 'sanitize_callback' ] = [ __CLASS__ , 'sanitize' ] ; // If this is a hue control then its value should be an integer. if ( isset ( $ args [ 'mode' ] ) && 'hue' === $ args [ 'mode' ] ) { $ args [ 'sanitize_callback' ] = 'absint' ; } } return $ args ; }
Filter arguments before creating the setting.

@access public
@since 0.1
@param array                $args         The field arguments.
@param WP_Customize_Manager $wp_customize The customizer instance.
@return array
Filter arguments before creating the setting .