WooCommerce Code Reference

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