WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::get_attribute_taxonomies() private WC 1.0

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

[ 'taxonomy_name' => [

'term_ids' => [id, id, ...],
'used_for_variations' => true|false

], ... ]

{} It's a method of the class: LookupDataStore{}

No Hooks.

Return

Array. Information about the attribute taxonomies of the product.

Usage

// private - for code of main (parent) class only
$result = $this->get_attribute_taxonomies( $product );
$product(WC_Product) (required)
The product to get the attribute taxonomies for.

Code of LookupDataStore::get_attribute_taxonomies() WC 5.9.0

private function get_attribute_taxonomies( \WC_Product $product ) {
	$product_attributes = $product->get_attributes();
	$result             = array();
	foreach ( $product_attributes as $taxonomy_name => $attribute_data ) {
		if ( ! $attribute_data->get_id() ) {
			// Custom product attribute, not suitable for attribute-based filtering.
			continue;
		}

		$result[ $taxonomy_name ] = array(
			'term_ids'            => $attribute_data->get_options(),
			'used_for_variations' => $attribute_data->get_variation(),
		);
	}

	return $result;
}