Created
August 29, 2019 08:42
-
-
Save paulgoodchild/5b2d84c42266df27fc600a2ace96e7c8 to your computer and use it in GitHub Desktop.
Shield Security - force English display in international sites
This file contains 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 | |
/** | |
* You can force Shield to display in any language (assuming the translation exists) | |
* regardless of which language your site is currently configured to operate in. | |
* | |
* In this example, we are forcing English. Adjust line #10 to change preferred locale. | |
*/ | |
add_filter( 'shield_force_locale', function () { | |
return 'en_US'; | |
}, 10, 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment