old_slug_redirect_url

old_slug_redirect_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('old_slug_redirect_url') is found 1 times:

  • /wp-includes/query.php line 1114
    		 * @since 4.4.0
    		 *
    		 * @param string $link The redirect URL.
    		 */
    		$link = apply_filters( 'old_slug_redirect_url', $link );
    
    		if ( ! $link ) {
    			return;
    		}
    
    		wp_redirect( $link, 301 ); // Permanent redirect.
    

See this hook used in plugins: