WordPress at Your Fingertips
filter is not described

woocommerce_shipping_rate_method_id filter-hook . WC 3.2.0

Get shipping method ID the rate belongs to.

Usage

add_filter( 'woocommerce_shipping_rate_method_id', 'filter_function_name_8418', 10, 2 );
function filter_function_name_8418( $data_method_id, $that ){
	// filter...

	return $data_method_id;
}
$data_method_id
-
$that
-

Changelog

Since 3.2.0 Introduced.

Where the hook is called

WC_Shipping_Rate::get_method_id()
woocommerce_shipping_rate_method_id
woocommerce/includes/class-wc-shipping-rate.php 181
return apply_filters( 'woocommerce_shipping_rate_method_id', $this->data['method_id'], $this );

Where in WP core the hook is used WooCommerce

Usage not found.