WC_Shipping_Method::get_instance_id()publicWC 2.6.0

Return the shipping method instance ID.

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

No Hooks.

Return

Int.

Usage

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->get_instance_id();

Changelog

Since 2.6.0 Introduced.

Code of WC_Shipping_Method::get_instance_id() WC 6.9.4

public function get_instance_id() {
	return $this->instance_id;
}