Get the top level comment ID

How do I get the ID of the top level comment, as in, the top parent comment? Useful functions like get_ancestors() and get_post_ancestors() don’t work with comments.

Read more here: Get the top level comment ID

Leave a Reply

Your email address will not be published. Required fields are marked *