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: ''


Top ↑

Return Return

(object)


Top ↑

Source Source

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


			


Top ↑

User Contributed Notes User Contributed Notes

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