WC_Product_Variation::__construct()publicWC 1.0

Override the default constructor to set custom defaults.

Method of the class: WC_Product_Variation{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Product_Variation = new WC_Product_Variation();
$WC_Product_Variation->__construct( $product );
$product(int|WC_Product|object)
Product to init.

WC_Product_Variation::__construct() code WC 9.3.3

public function __construct( $product = 0 ) {
	$this->data['tax_class']         = 'parent';
	$this->data['attribute_summary'] = '';
	parent::__construct( $product );
}