ProductSchema::prepare_product_attribute_value( string $name, int $id, string $slug = '' )
Prepare an attribute term for the response.
Description Description
Parameters Parameters
- $name
-
(Required) Attribute term name.
- $id
-
(Required) Attribute term ID.
- $slug
-
(Optional) Attribute term slug.
Default value: ''
Return Return
(object)
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/ProductSchema.php