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.

wc_has_custom_attribute_types() code WC 8.7.0

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

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