wc_get_attribute_type_label( string $type )

Get attribute type label.


Description Description


Parameters Parameters

$type

(Required) Attribute type slug.


Top ↑

Return Return

(string)


Top ↑

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' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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