WooCommerce Code Reference

DefaultFormatter
in package
implements FormatterInterface

Default Formatter.

Interfaces, Classes and Traits

FormatterInterface
FormatterInterface.

Table of Contents

format()  : mixed
Format a given value and return the result.

Methods

format()

Format a given value and return the result.

public format(mixed $value[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$value : mixed

Value to format.

$options : array<string|int, mixed> = []

Options that influence the formatting.

Return values
mixed