WordPress at Your Fingertips
function is not described

WC_Product_Simple::__construct() public WC 1.0

Initialize simple product.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Simple = new WC_Product_Simple();
$WC_Product_Simple->__construct( $product );
$product(WC_Product|int)
Product instance or ID.

Code of WC_Product_Simple::__construct() WC 5.6.0

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