WC_Data::get_idpublicWC 2.6.0

Returns the unique ID for this object.

Method of the class: WC_Data{}

No Hooks.

Returns

Int.

Usage

$WC_Data = new WC_Data();
$WC_Data->get_id();

Changelog

Since 2.6.0 Introduced.

WC_Data::get_id() code WC 9.9.5

public function get_id() {
	return $this->id;
}