old_slug_redirect_post_id

old_slug_redirect_post_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('old_slug_redirect_post_id') is found 1 times:

  • /wp-includes/query.php line 1093
    		 * @since 4.9.3
    		 *
    		 * @param int $id The redirect post ID.
    		 */
    		$id = apply_filters( 'old_slug_redirect_post_id', $id );
    
    		if ( ! $id ) {
    			return;
    		}
    
    		$link = get_permalink( $id );