wc_variation_attribute_name()WC 2.6.0

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

No Hooks.

Return

String.

Usage

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

Changelog

Since 2.6.0 Introduced.

wc_variation_attribute_name() code WC 8.6.1

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