Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matadorjobs/4fc6bf36a22c29d6d7d3b25e22c3785d to your computer and use it in GitHub Desktop.
Save matadorjobs/4fc6bf36a22c29d6d7d3b25e22c3785d to your computer and use it in GitHub Desktop.
Matador Docs Example: Modify Job General Location Taxonomy Source
<?php //omit opening PHP tag
add_filter( 'matador_import_location_taxonomy_field', 'mdocs_example_matador_import_location_taxonomy_field', 10 );
/**
* Example Location Taxonomy Field
*
* @copyright 2020, Matador Software, LLC
* @author Jeremy Scott, Matador Software LLC
* @link https://matadorjobs.com/
*
* @param string $field_to_use
*
* @return string $field_to_use Must be 'city', 'state', 'zip', 'country', or 'job_general_location'
*/
function mdocs_example_matador_import_location_taxonomy_field( $field_to_use ) {
$field_to_use = 'state';
return $field_to_use;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment