Created
March 23, 2016 14:22
-
-
Save mikejolley/674f1b57e8a1390a8fd8 to your computer and use it in GitHub Desktop.
WP Job Manager Geolocation - Set language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add to theme functions.php | |
add_filter( 'job_manager_geolocation_endpoint', 'change_geocode_lang' ); | |
function change_geocode_lang( $endpoint ) { | |
// Use language from https://developers.google.com/maps/faq#using-google-maps-apis | |
return add_query_arg( 'language', 'en-GB', $endpoint ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment