Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Add example for thousand separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Young committed Jun 3, 2017
1 parent 993dfda commit d5b2e02
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions change-thousand-separator.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Plugin Name: WP Simple Pay - Change Thousand Separator
* Plugin URI: https://wpsimplepay.com
* Description: Change the thousand separator using a filter for WP Simple Pay
* Version: 1.0
*/

/**
* In this example, we'll see how to change the thousand separator.
*/
function simpay_custom_thousand_separator() {

// Change it to a period
return '.';
}
add_filter( 'simpay_thousand_separator', 'simpay_custom_thousand_separator' );

0 comments on commit d5b2e02

Please sign in to comment.