W3cubDocs

/WordPress

apply_filters( ‘old_slug_redirect_post_id’, int $id )

Filters the old slug redirect post ID.

Parameters

$idint
The redirect post ID.

Source

$id = apply_filters( 'old_slug_redirect_post_id', $id );

Changelog

Version Description
4.9.3 Introduced.

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