Automattic\WooCommerce\StoreApi\Schemas\V1\AI
ProductsSchema::get_item_response()
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() 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'], ]; }