Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LookupDataStore::get_attribute_taxonomies( WC_Product $product )

Return the list of taxonomies used for variations on a product together with the associated term ids, with the following format:


Description Description

[ ‘taxonomy_name’ => [ ‘term_ids’ => [id, id, …], ‘used_for_variations’ => true|false ], … ]


Parameters Parameters

$product

(Required) The product to get the attribute taxonomies for.


Top ↑

Return Return

(array) Information about the attribute taxonomies of the product.


Top ↑

Source Source

File: src/Internal/ProductAttributesLookup/LookupDataStore.php


			


Top ↑

User Contributed Notes User Contributed Notes

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