Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created January 13, 2014 15:47
Show Gist options
  • Save jeremyboggs/8402540 to your computer and use it in GitHub Desktop.
Save jeremyboggs/8402540 to your computer and use it in GitHub Desktop.
<?php
add_filter('locale', 'change_locale');
function change_locale($locale) {
if(isset($_GET['locale'])) {
$locale = $_GET['locale'];
}
return $locale;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment