WC_Product::has_attributes()
Returns whether or not the product has any visible attributes.
Description Description
Return Return
(boolean)
Source Source
File: includes/abstracts/abstract-wc-product.php
public function has_attributes() { foreach ( $this->get_attributes() as $attribute ) { if ( $attribute->get_visible() ) { return true; } } return false; }