WooCommerce Code Reference

CurrencyFormatter
in package
implements FormatterInterface

Currency Formatter.

Formats an array of monetary values by inserting currency data.

Interfaces, Classes and Traits

FormatterInterface
FormatterInterface.

Table of Contents

format()  : array<string|int, mixed>
Format a given value and return the result.

Methods

format()

Format a given value and return the result.

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

Value to format.

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

Options that influence the formatting.

Return values
array<string|int, mixed>