WordPress at Your Fingertips
function is not described

WC_Data::get_id() public WC 2.6.0

Returns the unique ID for this object.

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

No Hooks.

Return

Int.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of WC_Data::get_id() WC 5.5.2

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