Created
January 3, 2017 19:28
-
-
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
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 | |
// 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works perfectly.