Automattic\WooCommerce\StoreApi\Formatters
FormatterInterface::format()
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() FormatterInterface::format WC 7.5.1
public function format( $value, array $options = [] );