taxonomy_is_product_attribute( string $name )

Returns true when the passed taxonomy name is a product attribute.


Description Description


Parameters Parameters

$name

(Required) of the attribute.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/wc-conditional-functions.php

	function taxonomy_is_product_attribute( $name ) {
		global $wc_product_attributes;

		return taxonomy_exists( $name ) && array_key_exists( $name, (array) $wc_product_attributes );
	}


Top ↑

User Contributed Notes User Contributed Notes

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