Home / Admin / Remove Decimals
Duplicate Snippet

Embed Snippet on Your Site

Remove Decimals

Removes decimal places from all prices

Code Preview
php
<?php
function pw_edd_remove_decimals( $decimals ) {
 
	return 0;
}
add_filter( 'edd_format_amount_decimals', 'pw_edd_remove_decimals' );

Comments

Add a Comment