Automattic\WooCommerce\StoreApi\Schemas\V1
ProductSchema::prepare_product_attribute_taxonomy_value()
Prepare an attribute term for the response.
Method of the class: ProductSchema{}
No Hooks.
Return
Object
.
Usage
// protected - for code of main (parent) or child class $result = $this->prepare_product_attribute_taxonomy_value( $term );
- $term(\WP_Term) (required)
- Term object.
ProductSchema::prepare_product_attribute_taxonomy_value() ProductSchema::prepare product attribute taxonomy value code WC 9.3.3
protected function prepare_product_attribute_taxonomy_value( \WP_Term $term ) { return $this->prepare_product_attribute_value( $term->name, $term->term_id, $term->slug ); }