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.


Parameters

$location

(string)The destination URL.

$tax

(WP_Taxonomy)The taxonomy object.


Top ↑

Source

File: wp-admin/edit-tags.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.