old_slug_redirect_url
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
old_slug_redirect_url
wp-includes/query.php 1114
$link = apply_filters( 'old_slug_redirect_url', $link );