WordPress at Your Fingertips
filter is not described

woocommerce_shipping_method_add_rate_args filter-hook . WC 1.0

Add a shipping rate. If taxes are not set they will be calculated based on cost.


add_filter( 'woocommerce_shipping_method_add_rate_args', 'filter_function_name_570', 10, 2 );
function filter_function_name_570( $args, $that ){
	// filter...

	return $args;
Arguments (default: array()).

Where the hook is called

woocommerce/includes/abstracts/abstract-wc-shipping-method.php 266-282
$args = apply_filters(
			'id'             => $this->get_rate_id(), // ID for the rate. If not passed, this id:instance default will be used.
			'label'          => '', // Label for the rate.
			'cost'           => '0', // Amount or array of costs (per item shipping).
			'taxes'          => '', // Pass taxes, or leave empty to have it calculated for you, or 'false' to disable calculations.
			'calc_tax'       => 'per_order', // Calc tax per_order or per_item. Per item needs an array of costs.
			'meta_data'      => array(), // Array of misc meta data to store along with this rate - key value pairs.
			'package'        => false, // Package array this rate was generated for @since 2.6.0.
			'price_decimals' => wc_get_price_decimals(),

Where in WP core the hook is used WooCommerce

Usage not found.