Automattic\WooCommerce\StoreApi\Formatters

FormatterInterface::format()publicWC 1.0

Format a given value and return the result.

Method of the class: FormatterInterface{}

No Hooks.

Return

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 8.7.0

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