WordPress at a glance
action is not described

woocommerce_before_get_rates_for_package action-hook . WC 4.3.0

Fires before getting shipping rates for a package.

Usage

add_action( 'woocommerce_before_get_rates_for_package', 'action_function_name_6573', 10, 2 );
function action_function_name_6573( $package, $shipping_method ){
	// action...
}
$package(array)
Package of cart items.
$shipping_method(WC_Shipping_Method)
Shipping method instance.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

WC_Shipping::calculate_shipping_for_package()
woocommerce_before_get_rates_for_package
woocommerce/includes/class-wc-shipping.php 345
do_action( 'woocommerce_before_get_rates_for_package', $package, $shipping_method );

Where in WP core the hook is used WooCommerce

Usage not found.