Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 17, 2021 06:08
Show Gist options
  • Select an option

  • Save wbcomdev/15b131f3dcaebf251fc1dcca82cd1582 to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/15b131f3dcaebf251fc1dcca82cd1582 to your computer and use it in GitHub Desktop.
/**
* 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