WC_Product_Variation::__construct( int|WC_Product|object $product )

Override the default constructor to set custom defaults.


Description Description


Parameters Parameters

$product

(Required) Product to init.


Top ↑

Source Source

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

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


Top ↑

User Contributed Notes User Contributed Notes

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