WordPress at Your Fingertips
function is not described

WC_Shipping_Rate::get_method_id() public WC 3.2.0

Get shipping method ID the rate belongs to.

{} 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_method_id();

Changelog

Since 3.2.0 Introduced.

Code of WC_Shipping_Rate::get_method_id() WC 5.6.0

public function get_method_id() {
	return apply_filters( 'woocommerce_shipping_rate_method_id', $this->data['method_id'], $this );
}