Created
August 21, 2019 21:51
-
-
Save NickGreen/1f9bf5719a049c55b76ebdebdd3bdb97 to your computer and use it in GitHub Desktop.
filter cart weight
This file contains hidden or 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
<?php | |
add_filter('woocommerce_cart_contents_weight', 'round_cart_contents_weight', 100, 1); | |
function round_cart_contents_weight($weight) { | |
return 100; | |
// return ceil($weight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment