wc_has_custom_attribute_types()
Check if there are custom attribute types.
Description Description
Return Return
(bool) True if there are custom types, otherwise false.
Source Source
File: includes/wc-attribute-functions.php
function wc_has_custom_attribute_types() {
$types = wc_get_attribute_types();
return 1 < count( $types ) || ! array_key_exists( 'select', $types );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.2 | Introduced. |