Automattic\WooCommerce\StoreApi\Formatters

FormatterInterface{}WC 1.0

FormatterInterface.

Хуков нет.

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

$FormatterInterface = new FormatterInterface();
// use class methods

Методы

  1. public format( $value, array $options = [] )

Код FormatterInterface{} WC 7.3.0

interface FormatterInterface {
	/**
	 * Format a given value and return the result.
	 *
	 * @param mixed $value Value to format.
	 * @param array $options Options that influence the formatting.
	 * @return mixed
	 */
	public function format( $value, array $options = [] );
}