Documentation

ProductReference
in package

Read onlyYes
FinalYes

Lightweight reference to a WooCommerce product without requiring WooCommerce.

Table of Contents

Properties

$id  : int
$sku  : string|null
$type  : string|null

Methods

__construct()  : mixed

Properties

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
On this page

Search results