WC_Shipping_Rate::get_instance_id()
Get instance ID the rate belongs to.
Method of the class: WC_Shipping_Rate{}
Hooks from the method
Return
Int
.
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->get_instance_id();
Changelog
Since 3.2.0 | Introduced. |
WC_Shipping_Rate::get_instance_id() WC Shipping Rate::get instance id code WC 9.4.2
public function get_instance_id() { return apply_filters( 'woocommerce_shipping_rate_instance_id', $this->data['instance_id'], $this ); }