old_slug_redirect_url filter-hookWP 4.4.0

Filters the old slug redirect URL.

Usage

add_filter( 'old_slug_redirect_url', 'wp_kama_old_slug_redirect_url_filter' );

/**
 * Function for `old_slug_redirect_url` filter-hook.
 * 
 * @param string $link The redirect URL.
 *
 * @return string
 */
function wp_kama_old_slug_redirect_url_filter( $link ){

	// filter...
	return $link;
}
$link(string)
The redirect URL.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_old_slug_redirect()
old_slug_redirect_url
wp-includes/query.php 1080
$link = apply_filters( 'old_slug_redirect_url', $link );

Where the hook is used in WordPress

Usage not found.