WC_Product_Variable::get_variation_attributes()

Return an array of attributes used for variations, as well as their possible values.


Description Description

This is lazy loaded as it’s not used often and does require several queries.


Return Return

(array) Attributes and their available values


Top ↑

Source Source

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

	public function get_variation_attributes() {
		if ( null === $this->variation_attributes ) {
			$this->variation_attributes = $this->data_store->read_variation_attributes( $this );
		}
		return $this->variation_attributes;
	}

Top ↑

User Contributed Notes User Contributed Notes

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