taxonomy_is_product_attribute()
Returns true when the passed taxonomy name is a product attribute.
Хуков нет.
Возвращает
true|false.
Использование
taxonomy_is_product_attribute( $name );
- $name(строка) (обязательный)
- of the attribute.
Код taxonomy_is_product_attribute() taxonomy is product attribute WC 10.4.3
function taxonomy_is_product_attribute( $name ) {
global $wc_product_attributes;
return taxonomy_exists( $name ) && array_key_exists( $name, (array) $wc_product_attributes );
}