Learn in this tutorial how to remove decimals from Easy Digital Downloads (EDD) prices using code.
By default, Easy Digital Downloads displays the price with two decimals.
But in some cases you may prefer to use round numbers, without any decimals.
Interested? Here’s how to display prices without decimals:
Snippet to remove decimals from the price in Easy Digital Downloads
Add the following code at the end of functions.php or in your functionality plugin:
It’s as simple as that.
Thanks to this snippet you can further simplify the pricing of your products or downloads in EDD:
Do you want to remove the decimals from Easy Digital Downloads prices? Now you know how to do it easily with code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂