WC_Shipping_Rate::get_id()publicWC 3.2.0

Get ID for the rate. This is usually a combination of the method and instance IDs.

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

Hooks from the method

Return

String.

Usage

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

Changelog

Since 3.2.0 Introduced.

Code of WC_Shipping_Rate::get_id() WC 6.7.0

public function get_id() {
	return apply_filters( 'woocommerce_shipping_rate_id', $this->data['id'], $this );
}