/ Published in: PHP

Use this in your functions.php
Sets one language for WP Admin and the other for front-end.
Sets one language for WP Admin and the other for front-end.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// must be called before "load_theme_domain" function set_my_locale($locale) { $locale = ( is_admin() ) ? "en_US" : "it_IT"; return $locale; } add_filter( 'locale', 'set_my_locale' ); load_theme_textdomain( 'YOUR TEXT DOMAIN HERE', TEMPLATEPATH.'/languages' );
Comments
