wc_variation_attribute_name()
Get the attribute name used when storing values in post meta.
No Hooks.
Returns
String.
Usage
wc_variation_attribute_name( $attribute_name );
- $attribute_name(string) (required)
- Attribute name.
Changelog
| Since 2.6.0 | Introduced. |
wc_variation_attribute_name() wc variation attribute name code WC 10.3.6
function wc_variation_attribute_name( $attribute_name ) {
return 'attribute_' . sanitize_title( $attribute_name );
}