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.
Return Return
(bool)
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 ); }