apply_filters( 'old_slug_redirect_url', string $link )
- Since
- 4.4.0
Filters the old slug redirect URL.
Parameters
$linkstring- The redirect URL.
Fired at · 1
wp-includes/query.php:1134wp_old_slug_redirect()
Source
View on Trac ↗View on GitHub ↗
1128 * Filters the old slug redirect URL.1129 *1130 * @since 4.4.01131 *1132 * @param string $link The redirect URL.1133 */1134 $link = apply_filters( 'old_slug_redirect_url', $link );1135 1136 if ( ! $link ) {1137 return;1138 }1139 1140 wp_redirect( $link, 301 );
History
Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.