Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WPJM: Specify language for geolocation
// 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
You can’t perform that action at this time.