Skip to content

Instantly share code, notes, and snippets.

@bradleysa
Created April 22, 2022 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradleysa/6d49582676af5f43239b9ca1acfbea8b to your computer and use it in GitHub Desktop.
Save bradleysa/6d49582676af5f43239b9ca1acfbea8b to your computer and use it in GitHub Desktop.
WC: Trim zeros in price decimals
add_filter( 'woocommerce_price_trim_zeros', '__return_true' );
/** https://krokedil.com/dont-display-prices-with-0-decimals-in-woocommerce/ **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment