WooCommerce Code Reference

MoneyFormatter
in package
implements FormatterInterface

Money Formatter.

Formats monetary values using store settings.

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