WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductSchema::prepare_product_attribute_taxonomy_value() protected WC 1.0

Prepare an attribute term for the response.

{} It's a 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.

Code of ProductSchema::prepare_product_attribute_taxonomy_value() WC 5.8.0

protected function prepare_product_attribute_taxonomy_value( \WP_Term $term ) {
	return $this->prepare_product_attribute_value( $term->name, $term->term_id, $term->slug );
}