This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_cart_contents_weight', 'prefix_filter_cart_contents_weight' ); | |
function prefix_filter_cart_contents_weight( $weight ) { | |
/** | |
* Adding 170 units to the total cart weight. | |
*/ | |
return $weight + 170; | |
} |