Home / Admin / WP Simple Pay: Remove Trailing Decimals
Duplicate Snippet

Embed Snippet on Your Site

WP Simple Pay: Remove Trailing Decimals

Removes trailing decimals in amounts

Code Preview
php
<?php
/**
 * @link https://library.wpcode.com/snippet/323j86jo/
 */
add_filter(
	'simpay_decimal_places',
	function() {
		return 0;
	}
);

Comments

Add a Comment