Created
September 16, 2015 13:15
-
-
Save mikejolley/f19bdc23ef5bd4123089 to your computer and use it in GitHub Desktop.
Add a region bias to geolocation in job manager
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
<?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