Automattic\WooCommerce\StoreApi\Formatters

FormatterInterface::formatpublicWC 1.0

Format a given value and return the result.

Method of the class: FormatterInterface{}

No Hooks.

Returns

Mixed.

Usage

$FormatterInterface = new FormatterInterface();
$FormatterInterface->format( $value, $options );
$value(mixed) (required)
Value to format.
$options(array)
Options that influence the formatting.
Default: []

FormatterInterface::format() code WC 9.9.5

public function format( $value, array $options = [] );