old_slug_redirect_url WordPress Filter Hook
The old_slug_redirect_url hook is used to redirect old slugs to the new slug. This hook is used when a post or page is updated and the slug is changed.
apply_filters( 'old_slug_redirect_url', string $link ) #
Filters the old slug redirect URL.
Parameters
- $link
(string)The redirect URL.
Source
File: wp-includes/query.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |