Skip to content

Commit

Permalink
force English for WP backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Piet Bos committed May 14, 2015
1 parent 258959a commit c0efff6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Functions/Admin-Dashboard/english-backend.php
@@ -0,0 +1,20 @@
<?php
/**
* Function to force English for the WP backend
*
* @source: answer by Mircea Burdusa on https://www.linkedin.com/grp/post/1482937-6003792331411595265
*/

add_filter( 'locale', 'so_english_backend' );

function so_english_backend( $locale ) {

if ( is_admin() ) {

return 'en_US';

}

return $locale;

}

0 comments on commit c0efff6

Please sign in to comment.