ProductSchema::prepare_product_price_response( WC_Product $product, string $tax_display_mode = '' )
Get an array of pricing data.
Description Description
Parameters Parameters
- $product
-
(Required) Product instance.
- $tax_display_mode
-
(Optional) If returned prices are incl or excl of tax.
Default value: ''
Return Return
(array)
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/ProductSchema.php