WordPress 5.7 Beta 2 is now available for testing. 🧪 The current target for the final 5.7 release is still March 9, 2021. 📅
There are two new Post Parent related functions in WordPress 5.7:
get_parent_post()is a template tag that accepts a Post ID or a
WP_Postobject and retrieves the parent
WP_Postobject for the given post.
has_parent_post()is a conditional tag that accepts a Post ID or a
WP_Postobject and returns true if the post has a parent, false if there's no parent.