Skip to content

Instantly share code, notes, and snippets.

@hissy
Created September 7, 2012 02:46
Show Gist options
  • Save hissy/3662674 to your computer and use it in GitHub Desktop.
Save hissy/3662674 to your computer and use it in GitHub Desktop.
[WordPress] [Facebook plugin] fix: Facebook locale does not set to "ja_JP" when using Japanese package
// please paste it in your functions.php
function filter_facebook_locale($locale){
$wp_locale = get_locale();
if ( $wp_locale = 'ja' ) $locale = 'ja_JP';
return $locale;
}
add_filter('fb_locale','filter_facebook_locale');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment