Automattic\WooCommerce\StoreApi\Formatters

FormatterInterface::format()publicWC 1.0

Format a given value and return the result.

Метод класса: FormatterInterface{}

Хуков нет.

Возвращает

Разное.

Использование

$FormatterInterface = new FormatterInterface();
$FormatterInterface->format( $value, $options );
$value(разное) (обязательный)
Value to format.
$options(массив)
Options that influence the formatting.
По умолчанию: []

Код FormatterInterface::format() WC 8.7.0

public function format( $value, array $options = [] );