diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index d088b3c21..4493bfda3 100644
a
|
b
|
function get_term_link( $term, $taxonomy = '' ) { |
3859 | 3859 | |
3860 | 3860 | $taxonomy = $term->taxonomy; |
3861 | 3861 | |
3862 | | $termlink = $wp_rewrite->get_extra_permastruct($taxonomy); |
| 3862 | /** |
| 3863 | * Filters the permalink for a term before applying the permalink structure |
| 3864 | * |
| 3865 | * |
| 3866 | * @since 4.7.2 |
| 3867 | * |
| 3868 | * @param string|false $wp_rewrite->get_extra_permastruct($taxonomy) The permalink structure for this taxonomy, or false if not set. |
| 3869 | * @param string $taxonomy |
| 3870 | * @param WP_Term $term |
| 3871 | */ |
| 3872 | $termlink = apply_filters( 'pre_term_link', $wp_rewrite->get_extra_permastruct($taxonomy), $taxonomy, $term ); |
3863 | 3873 | |
3864 | 3874 | $slug = $term->slug; |
3865 | 3875 | $t = get_taxonomy($taxonomy); |