Skip to content

Instantly share code, notes, and snippets.

@paulgoodchild
Created August 29, 2019 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgoodchild/5b2d84c42266df27fc600a2ace96e7c8 to your computer and use it in GitHub Desktop.
Save paulgoodchild/5b2d84c42266df27fc600a2ace96e7c8 to your computer and use it in GitHub Desktop.
Shield Security - force English display in international sites
<?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