WordPress at a glance
function is not described

wc_attribute_taxonomy_name_by_id() WC 2.4.0

Get a product attribute name by ID.

No Hooks.

Return

String. Return an empty string if attribute doesn't exist.

Usage

wc_attribute_taxonomy_name_by_id( $attribute_id );
$attribute_id(int) (required)
Attribute ID.

Changelog

Since 2.4.0 Introduced.

Code of wc_attribute_taxonomy_name_by_id() WC 5.2.2

<?php
function wc_attribute_taxonomy_name_by_id( $attribute_id ) {
	$taxonomy_ids   = wc_get_attribute_taxonomy_ids();
	$attribute_name = (string) array_search( $attribute_id, $taxonomy_ids, true );
	return wc_attribute_taxonomy_name( $attribute_name );
}