Automattic\WooCommerce\StoreApi\Formatters
FormatterInterface::format()
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() FormatterInterface::format code WC 9.3.1
public function format( $value, array $options = [] );