Automattic\WooCommerce\Api\Infrastructure\Schema

InterfaceType::get_metadatapublicWC 1.0

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

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

Хуков нет.

Возвращает

Массив<Строку,. bool|int|float|string|null>

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

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

Код InterfaceType::get_metadata() WC 10.9.1

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