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.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.2 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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