original_string: 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' );
  	}
code: 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' );
  	}
code_tokens: 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' ) ; }
docstring: Register a custom field type.
  
  @param  string              $name
  @param  callable|Field_Type $callback
  @param  callable            $sanitizer
  @return void
docstring_tokens: Register a custom field type .