W3cubDocs

/WordPress

apply_filters( ‘old_slug_redirect_url’, string $link )

Filters the old slug redirect URL.

Parameters

$linkstring
The redirect URL.

Source

$link = apply_filters( 'old_slug_redirect_url', $link );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/old_slug_redirect_url