Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created May 2, 2018 11:37
Show Gist options
  • Save yanknudtskov/b0303288bfb356cac2b364ac42e5f442 to your computer and use it in GitHub Desktop.
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)
<?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