Automattic\WooCommerce\StoreApi\Routes\V1\Ucp

AbstractCatalogRoute::ucp_metadata │ protected │ WC 1.0

Build the ucp envelope for a response from this route.

Method of the class: AbstractCatalogRoute{}

No Hooks.

Returns

array.

Usage

// protected - for code of main (parent) or child class
$result = $this->ucp_metadata( $status ): array;
$status(string) (required)
Response status, success or error.

AbstractCatalogRoute::ucp_metadata() code WC 11.3.0

protected function ucp_metadata( string $status ): array {
	return UcpUtils::response_metadata( $this->get_capability(), $status );
}