Automattic\WooCommerce\Api\Infrastructure\Schema

ObjectType::get_metadatapublicWC 1.0

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

Method of the class: ObjectType{}

No Hooks.

Returns

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

Usage

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

ObjectType::get_metadata() code WC 10.9.1

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