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

Embed Snippet on Your Site

WP Simple Pay: Custom Thousand Separator

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

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

Comments

Add a Comment