redirect_term_location WordPress Filter Hook
The redirect_term_location hook is used to modify the location of a term when it is being redirected. This can be useful for customizing the behavior of WordPress when terms are moved or renamed.
apply_filters( 'redirect_term_location', string $location , WP_Taxonomy $tax ) #
Filters the taxonomy redirect destination URL.
Contents
Parameters
- $location
(string)The destination URL.
- $tax
(WP_Taxonomy)The taxonomy object.
Source
File: wp-admin/edit-tags.php
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |