public static function register( $name, $callback = null, $sanitizer = null ) {
		unset( static::$resolved[ $name ] );

		if ( $callback instanceof Field_Type ) {
			$instance = $callback;

			list( $callback, $sanitizer ) = [
				[ $instance, 'display' ],
				[ $instance, 'sanitization' ],
			];

			static::$instances[ $name ] = $instance;
		}

		static::$bindings[ $name ] = compact( 'callback', 'sanitizer' );
	}
public static function register( $name, $callback = null, $sanitizer = null ) {
		unset( static::$resolved[ $name ] );

		if ( $callback instanceof Field_Type ) {
			$instance = $callback;

			list( $callback, $sanitizer ) = [
				[ $instance, 'display' ],
				[ $instance, 'sanitization' ],
			];

			static::$instances[ $name ] = $instance;
		}

		static::$bindings[ $name ] = compact( 'callback', 'sanitizer' );
	}
public static function register ( $ name , $ callback = null , $ sanitizer = null ) { unset ( static :: $ resolved [ $ name ] ) ; if ( $ callback instanceof Field_Type ) { $ instance = $ callback ; list ( $ callback , $ sanitizer ) = [ [ $ instance , 'display' ] , [ $ instance , 'sanitization' ] , ] ; static :: $ instances [ $ name ] = $ instance ; } static :: $ bindings [ $ name ] = compact ( 'callback' , 'sanitizer' ) ; }
Register a custom field type.

@param  string              $name
@param  callable|Field_Type $callback
@param  callable            $sanitizer
@return void
Register a custom field type .