Created
November 20, 2020 15:54
-
-
Save mgibbs189/78431652aa800f4f53de7df61ec7993c to your computer and use it in GitHub Desktop.
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 | |
// Add to your (child) theme's functions.php | |
add_filter( 'term_link', function( $termlink, $term, $taxonomy ) { | |
if ( 'portfolio_skills' == $taxonomy ) { /* TODO: this taxonomy name may need to change? */ | |
$termlink = '/wineries-2/?_wine_types=' . $term->slug; | |
} | |
return $termlink; | |
}, 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment