WordPress at Your Fingertips
function is not described

WC_Product_Variable::set_variation_attributes() public WC 3.0.0

Sets an array of variation attributes.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->set_variation_attributes( $variation_attributes );
$variation_attributes(array) (required)
Attributes list.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_Variable::set_variation_attributes() WC 5.8.0

public function set_variation_attributes( $variation_attributes ) {
	$this->variation_attributes = $variation_attributes;
}