wc_has_custom_attribute_types()
Check if there are custom attribute types.
No Hooks.
Returns
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() wc has custom attribute types code WC 10.7.0
function wc_has_custom_attribute_types() {
$types = wc_get_attribute_types();
return 1 < count( $types ) || ! array_key_exists( 'select', $types );
}