WordPress at Your Fingertips
function is not described

WC_Shipping_Method::get_instance_id() public WC 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 5.8.0

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