Automattic\WooCommerce\StoreApi\Schemas\V1\Ucp

UcpCatalogSchema{} │ WC 1.0└─ AbstractSchema

Placeholder schema for the UCP catalog routes.

The routes answer with the UCP envelope rather than a Store API resource, so they declare no properties; this exists because every Store API route is constructed with a schema.

Хуков нет.

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

$UcpCatalogSchema = new UcpCatalogSchema();
// use class methods

Методы

  1. public get_properties()

Код UcpCatalogSchema{} WC 11.3.0

class UcpCatalogSchema extends AbstractSchema {
	/**
	 * The schema item name.
	 *
	 * @var string
	 */
	protected $title = 'ucp-catalog';

	/**
	 * The schema item identifier.
	 *
	 * @var string
	 */
	const IDENTIFIER = 'ucp-catalog';

	/**
	 * Schema properties.
	 *
	 * @return array
	 */
	public function get_properties() {
		return array();
	}
}