WC_Product_Variable::set_variation_attributes()
Sets an array of variation attributes.
Method of the class: WC_Product_Variable{}
No Hooks.
Return
null
. Nothing (null).
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. |
WC_Product_Variable::set_variation_attributes() WC Product Variable::set variation attributes code WC 9.4.2
public function set_variation_attributes( $variation_attributes ) { $this->variation_attributes = $variation_attributes; }