WordPress at Your Fingertips
function is not described

WC_Shipping_Rate::get_instance_id() public WC 3.2.0

Get instance ID the rate belongs to.

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

Return

Int.

Usage

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

Changelog

Since 3.2.0 Introduced.

Code of WC_Shipping_Rate::get_instance_id() WC 5.6.0

public function get_instance_id() {
	return apply_filters( 'woocommerce_shipping_rate_instance_id', $this->data['instance_id'], $this );
}