WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp old slug redirect

Description

Redirect old slugs to the correct permalink.

Attempts to find the current slug from the past slugs.

Usage

<?php wp_old_slug_redirect() ?>

Parameters

None.

Return Values

(null) 
If no link is found, null is returned.

Examples

Notes

Change Log

Since: 2.1.0

Source File

wp_old_slug_redirect() is located in /wp-includes/query.php.

Related