wc_get_attribute_type_label()
Get attribute type label.
No Hooks.
Returns
String.
Usage
wc_get_attribute_type_label( $type );
- $type(string) (required)
- Attribute type slug.
Changelog
| Since 3.0.0 | Introduced. |
wc_get_attribute_type_label() wc get attribute type label code WC 10.7.0
function wc_get_attribute_type_label( $type ) {
$types = wc_get_attribute_types();
return isset( $types[ $type ] ) ? $types[ $type ] : __( 'Select', 'woocommerce' );
}