wc_variation_attribute_name( string $attribute_name )

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


Description Description


Parameters Parameters

$attribute_name

(Required) Attribute name.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/wc-attribute-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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