old_slug_redirect_url filter-hook . WP 4.4.0
Filters the old slug redirect URL.
Usage
add_filter( 'old_slug_redirect_url', 'filter_function_name_3711' ); function filter_function_name_3711( $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 1076
$link = apply_filters( 'old_slug_redirect_url', $link );