Created
October 7, 2014 15:05
-
-
Save dancameron/f6c3d182618404b0a153 to your computer and use it in GitHub Desktop.
Manually Setting Locale for Sprout Invoices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Placed in the functions.php file of your theme this filter will override | |
| * the local used by Sprout Invoices (which is the local WordPress is configured to use). | |
| * | |
| * nl_NL is the local in this example, change it to your local. | |
| */ | |
| function set_sprout_invoices_locale() { | |
| return 'nl_NL'; // change nl_NL and leave the single quotes. | |
| } | |
| add_filter( 'sa_set_locale', 'set_sprout_invoices_locale' ); |
Author
Sorry, but this code for some reason does not change the locale.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
List of codes: https://gist.github.com/dancameron/d7288ff652f9940d2be5