woocommerce_cart_contents_weight

woocommerce_cart_contents_weight

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_contents_weight') is found 1 times:

  • /includes/class-wc-cart.php line 680
    				$weight += (float) $values['data']->get_weight() * $values['quantity'];
    			}
    		}
    
    		return apply_filters( 'woocommerce_cart_contents_weight', $weight );
    	}
    
    	/**
    	 * Get cart items quantities - merged so we can do accurate stock checks on items across multiple lines.
    	 *
    	 * @return array