All-Access subscribers can use the add-on Job Object Customizer to add additional fields from Bullhorn and set them as a taxonomy.
To import all of the elements (city, state, etc.) in the address object, you can use the City, State, & Workplace Taxonomies add-on.
If you wish to do this via code especially it you rely on this in your theme code
You can automatically import additional location taxonomies by just adding the taxonomy to matador with code like this. Matador will populate as part of the importing.
add_filter( 'matador_variable_job_taxonomies', function( $taxonomies ) {
$taxonomies['city'] = array(
'key' => 'city',
'single' => _x( 'City', 'Job City Singular Name.', 'matador-jobs' ),
'plural' => _x( 'Cities', 'Job Cities Plural Name.', 'matador-jobs' ),
'slug' => matador\Matador::setting( 'taxonomy_slug_cities' ) ?: 'matador-cities',
);
$taxonomies['state'] = array(
'key' => 'state',
'single' => _x( 'State', 'Job State Singular Name.', 'matador-jobs' ),
'plural' => _x( 'States', 'Job States Plural Name.', 'matador-jobs' ),
'slug' => matador\Matador::setting( 'taxonomy_slug_States' ) ?: 'matador-States',
);
return $taxonomies;
});
The supported taxonomies are
'city', 'state', 'zip', 'country', 'job_general_location'