woocommerce_cart_contents_weight хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_cart_contents_weight', 'wp_kama_woocommerce_cart_contents_weight_filter' );

/**
 * Function for `woocommerce_cart_contents_weight` filter-hook.
 * 
 * @param  $weight 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_contents_weight_filter( $weight ){

	// filter...
	return $weight;
}
$weight
-

Где вызывается хук

WC_Cart::get_cart_contents_weight()
woocommerce_cart_contents_weight
woocommerce/includes/class-wc-cart.php 678
return apply_filters( 'woocommerce_cart_contents_weight', $weight );

Где используется хук в WooCommerce

Использование не найдено.