Returns whether or not the product has any visible attributes.

Description Description

Return Return


Top ↑

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;

Top ↑

User Contributed Notes User Contributed Notes

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