Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created September 16, 2015 13:15
Show Gist options
  • Save mikejolley/f19bdc23ef5bd4123089 to your computer and use it in GitHub Desktop.
Save mikejolley/f19bdc23ef5bd4123089 to your computer and use it in GitHub Desktop.
Add a region bias to geolocation in job manager
<?php
/**
* Add to functions.php. Replace country_code with a CCTLD
*/
function wp_job_manager_region_bias() {
return 'country_code';
}
add_filter( 'job_manager_geolocation_region_cctld', 'wp_job_manager_region_bias' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment