WordPress at a glance
function is not described

wc_variation_attribute_name() WC 2.6.0

Get the attribute name used when storing values in post meta.

No Hooks.

Return

String. Nothing.

Usage

wc_variation_attribute_name( $attribute_name );
$attribute_name(string) (required)
Attribute name.

Changelog

Since 2.6.0 Introduced.

Code of wc_variation_attribute_name() WC 5.2.2

<?php
function wc_variation_attribute_name( $attribute_name ) {
	return 'attribute_' . sanitize_title( $attribute_name );
}