WordPress at Your Fingertips
function is not described

wc_has_custom_attribute_types() WC 3.3.2

Check if there are custom attribute types.

No Hooks.

Return

true|false. True if there are custom types, otherwise false.

Usage

wc_has_custom_attribute_types();

Changelog

Since 3.3.2 Introduced.

Code of wc_has_custom_attribute_types() WC 5.8.0

function wc_has_custom_attribute_types() {
	$types = wc_get_attribute_types();

	return 1 < count( $types ) || ! array_key_exists( 'select', $types );
}