Title: redirect_term_location
Published: August 16, 2016
Last modified: May 20, 2026

---

# apply_filters( ‘redirect_term_location’, string $location, WP_Taxonomy $tax )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#wp--skip-link--target)

Filters the taxonomy redirect destination URL.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#parameters)󠁿

 `$location`string

The destination URL.

`$tax`[WP_Taxonomy](https://developer.wordpress.org/reference/classes/wp_taxonomy/)

The taxonomy object.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#source)󠁿

    ```php
    wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/edit-tags.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/edit-tags.php#L231)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/edit-tags.php#L231-L231)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/redirect_term_location/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fredirect_term_location%2F)
before being able to contribute a note or feedback.