Created
May 2, 2018 11:37
-
-
Save yanknudtskov/b0303288bfb356cac2b364ac42e5f442 to your computer and use it in GitHub Desktop.
How to remove decimal points for products in #woocommerce where they end on 0 (zero)
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 | |
/* | |
* Trim zeros in price decimals | |
*/ | |
add_filter( 'woocommerce_price_trim_zeros', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment