Automattic\WooCommerce\StoreApi\Schemas\V1\AI

ProductsSchema::get_item_response()publicWC 1.0

Get the Products response.

Method of the class: ProductsSchema{}

No Hooks.

Return

Array.

Usage

$ProductsSchema = new ProductsSchema();
$ProductsSchema->get_item_response( $item );
$item(array) (required)
Item to get response for.

ProductsSchema::get_item_response() code WC 9.5.1

public function get_item_response( $item ) {
	return [
		'ai_content_generated' => $item['ai_content_generated'],
		'product_content'      => $item['product_content'],
	];
}