I think I might be able to parse the URL for the replytocom
parameter and get the comment ID from that. However, it would mean that my plugin would not be fully compatible with other plugins that can remove this parameter (most notably Yoast SEO). Plus, it feels a bit hacky. Is there another way?
Endgoal: I need that comment ID to use in an AJAX request – to fetch data (such as the comment thread depth) so that I can display custom data in the front end.