ProductSchema::get_item_response( array $product )

Convert a WooCommerce product into an object suitable for the response.


Description Description


Parameters Parameters

$product

(Required) Product object.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: woocommerce/packages/woocommerce-blocks/src/RestApi/StoreApi/Schemas/ProductSchema.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.