WordPress at Your Fingertips
function is not described

WC_Product_Variation::has_attributes() public WC 1.0

Returns whether or not the product has any visible attributes.

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

{} It's a method of the class: WC_Product_Variation{}

No Hooks.




$WC_Product_Variation = new WC_Product_Variation();

Code of WC_Product_Variation::has_attributes() WC 5.6.0

public function has_attributes() {
	return false;