Last active
February 19, 2016 17:57
-
-
Save fjarrett/144913204152a658f254 to your computer and use it in GitHub Desktop.
Always use English in the WP Admin
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 | |
add_action( 'plugins_loaded', function() { | |
add_filter( 'locale', function( $locale ) { | |
return is_admin() ? 'en_US' : $locale; | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment