WordPress at Your Fingertips
function is not described

WC_Product_Variation::__construct() public WC 1.0

Override the default constructor to set custom defaults.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Product_Variation::__construct() WC 5.7.1

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