diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index d088b3c21..4493bfda3 100644
--- a/src/wp-includes/taxonomy.php
+++ b/src/wp-includes/taxonomy.php
@@ -3859,7 +3859,17 @@ function get_term_link( $term, $taxonomy = '' ) {
 
 	$taxonomy = $term->taxonomy;
 
-	$termlink = $wp_rewrite->get_extra_permastruct($taxonomy);
+	/**
+   * Filters the permalink for a term before applying the permalink structure
+   *
+   *
+   * @since 4.7.2
+   *
+   * @param string|false  $wp_rewrite->get_extra_permastruct($taxonomy) The permalink structure for this taxonomy, or false if not set.
+   * @param string        $taxonomy
+   * @param WP_Term       $term
+   */
+  $termlink = apply_filters( 'pre_term_link', $wp_rewrite->get_extra_permastruct($taxonomy), $taxonomy, $term );
 
 	$slug = $term->slug;
 	$t = get_taxonomy($taxonomy);
