wc_get_attribute_type_label( string $type )
Get attribute type label.
Description Description
Parameters Parameters
- $type
-
(Required) Attribute type slug.
Return Return
(string)
Source Source
File: includes/wc-attribute-functions.php
function wc_get_attribute_type_label( $type ) { $types = wc_get_attribute_types(); return isset( $types[ $type ] ) ? $types[ $type ] : __( 'Select', 'woocommerce' ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |