Last active
March 30, 2020 19:23
-
-
Save matadorjobs/4fc6bf36a22c29d6d7d3b25e22c3785d to your computer and use it in GitHub Desktop.
Matador Docs Example: Modify Job General Location Taxonomy Source
This file contains hidden or 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 //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