Automattic\WooCommerce\StoreApi\Utilities

UcpUtils::capability_declarations │ public static │ WC 1.0

Spec and schema references for every capability these routes serve, keyed by capability name.

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

Хуков нет.

Возвращает

array.

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

$result = UcpUtils::capability_declarations(): array;

Код UcpUtils::capability_declarations() WC 11.3.0

public static function capability_declarations(): array {
	return array(
		self::CAPABILITY_CATALOG_SEARCH => array(
			'version' => self::VERSION,
			'spec'    => 'https://ucp.dev/' . self::VERSION . '/specification/catalog/search',
			'schema'  => 'https://ucp.dev/' . self::VERSION . '/schemas/shopping/catalog_search.json',
		),
		self::CAPABILITY_CATALOG_LOOKUP => array(
			'version' => self::VERSION,
			'spec'    => 'https://ucp.dev/' . self::VERSION . '/specification/catalog/lookup',
			'schema'  => 'https://ucp.dev/' . self::VERSION . '/schemas/shopping/catalog_lookup.json',
		),
	);
}