WC_Shipping_Method::get_instance_id()publicWC 2.6.0

Return the shipping method instance ID.

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.

WC_Shipping_Method::get_instance_id() code WC 8.6.1

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