How to use Yoast SEO backend in english even if WPLANG variable is not english?
-
I added this code to my functions.php file
add_filter('locale', 'wpse27056_setLocale'); function wpse27056_setLocale($locale) { if ( is_admin() ) { return 'en_US'; } return $locale; }
so the frontend is available in
ro_RO
andwp-admin
is available inen_US
Well… that almost worked excepting Yoast’s WordPress SEO plugin which is translated in romanian.
- The topic ‘How to use Yoast SEO backend in english even if WPLANG variable is not english?’ is closed to new replies.