Automattic\WooCommerce\Api\Infrastructure\Schema

CustomScalarType::get_metadatapublicWC 1.0

Type-level metadata entries declared in the config, keyed by name.

Method of the class: CustomScalarType{}

No Hooks.

Returns

Array. bool|int|float|string|null>

Usage

$CustomScalarType = new CustomScalarType();
$CustomScalarType->get_metadata(): array;

CustomScalarType::get_metadata() code WC 10.9.1

public function get_metadata(): array {
	return $this->config['metadata'] ?? array();
}