MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
WOOF_Post :: top()
- MEOW_Post The top level ancestor of the post, or simply this post if there are no ancestors or the post type is not hierarchical.
Retrieves the top level ancestor of this post.
Note: this will only return a meaningful result if this post is based on a hierarchical post type.