Created
August 29, 2019 08:42
Shield Security - force English display in international sites
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 | |
/** | |
* 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