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.


Top ↑

Source

File: wp-includes/query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.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.