ProductReference
in package
Read onlyYes
FinalYes
Lightweight reference to a WooCommerce product without requiring WooCommerce.
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$id
public
int
$id
$sku
public
string|null
$sku
= null
$type
public
string|null
$type
= null
Methods
__construct()
public
__construct(int $id[, string|null $sku = null ][, string|null $type = null ]) : mixed
Parameters
- $id : int
- $sku : string|null = null
- $type : string|null = null