Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes
AbstractFieldType::format_value
Formats a stored value for display based on the field type.
Method of the class: AbstractFieldType{}
No Hooks.
Returns
mixed. The formatted value.
Usage
$AbstractFieldType = new AbstractFieldType(); $AbstractFieldType->format_value( $value, $field );
- $value(mixed) (required)
- The stored value.
- $field(array) (required)
- The field.
AbstractFieldType::format_value() AbstractFieldType::format value code WC 11.2.1
public function format_value( $value, array $field ) {
return $value;
}