WC_Product_Simple::__construct()
Initialize simple product.
Method of the class: WC_Product_Simple{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product_Simple = new WC_Product_Simple(); $WC_Product_Simple->__construct( $product );
- $product(WC_Product|int)
- Product instance or ID.
WC_Product_Simple::__construct() WC Product Simple:: construct code WC 9.4.2
public function __construct( $product = 0 ) { $this->supports[] = 'ajax_add_to_cart'; parent::__construct( $product ); }