Home / Admin / WP Simple Pay: Custom Decimal Separator
Duplicate Snippet

Embed Snippet on Your Site

WP Simple Pay: Custom Decimal Separator

Changes the decimal separator from a . (period) to a , (comma).

Code Preview
php
<?php
/**
 * @link https://library.wpcode.com/snippet/e500y359/
 * 
 * @param string $separator Decimal separator.
 * @return string
 */
function simpay_custom_decimal_separator( $separator ) {
	return ',';
}
add_filter( 'simpay_decimal_separator', 'simpay_custom_decimal_separator' );

Comments

Add a Comment