RWMB_Field::map_types PHP Method

map_types() public static method

Map types
public static map_types ( array $field ) : string
$field array Field array
return string Field mapped type
	public static function map_types( $field ) {
		$type = isset( $field['type'] ) ? $field['type'] : 'input';
		$type_map = apply_filters(
			'rwmb_type_map',
			array(
				'file_advanced'  => 'media',
				'plupload_image' => 'image_upload',
				'url'            => 'text'
			)
		);

		return isset( $type_map[ $type ] ) ? $type_map[ $type ] : $type;
	}