WC_Product_Variation::has_attributes()

Returns whether or not the product has any visible attributes.


Description Description

Variations are mapped to specific attributes unlike products, and the return value of ->get_attributes differs. Therefore this returns false.


Return Return

(boolean)


Top ↑

Source Source

File: includes/class-wc-product-variation.php

	public function has_attributes() {
		return false;
	}

Top ↑

User Contributed Notes User Contributed Notes

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