Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created January 3, 2017 19:28
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 tripflex/a068bfc74ec31829b78403d3498ab453 to your computer and use it in GitHub Desktop.
Save tripflex/a068bfc74ec31829b78403d3498ab453 to your computer and use it in GitHub Desktop.
Set Job Tags taxonomy type as hierarchical (untested) for WP Job Manager Tags
<?php
// Requires WordPress 4.4+
add_filter( 'register_taxonomy_args', 'smyles_set_job_tags_hierarchical', 10, 3);
function smyles_set_job_tags_hierarchical( $args, $taxonomy, $object_type ){
if( $taxonomy === 'job_listing_tag' ){
$args['hierarchical'] = true;
}
return $args;
}
@eppul
Copy link

eppul commented Jan 4, 2017

Works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment