WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi

Formatters::register() public WC 1.0

Register a formatter class for usage.

{} It's a method of the class: Formatters{}

No Hooks.

Return

null. Nothing.

Usage

$Formatters = new Formatters();
$Formatters->register( $name, $class );
$name(string) (required)
Name of the formatter.
$class(string) (required)
A formatter class name.

Code of Formatters::register() WC 5.6.0

public function register( $name, $class ) {
	$this->formatters[ $name ] = new $class();
}