$post_type =
reset( $post_type );
} // Do not attempt redirect for hierarchical post types.
if ( is_post_type_hierarchical( $post_type ) ) { return;
} $id =
_find_post_by_old_slug( $post_type );
if ( !
$id ) { $id =
_find_post_by_old_date( $post_type );
} /**
* Filters the old slug redirect post ID.
*
* @since 4.9.3
*
* @param int $id The redirect post ID.
*/
$id =
apply_filters( 'old_slug_redirect_post_id',
$id );