How comment press knows which comment belongs to which paragraph? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 23 hours ago. Improve this question I am working on a wordpress plugin to fetch paragraph comments along with paragraph number generated by commentpress plugin. I'm using a function from comment-press plugin to generate the signature that is used to identify the paragraph and its comment. However, it works fine for smaller paragraphs only , it fails for bigger paragraphs. I tried comparing signatures , one that I am generating with the one comment-press is generating when some one comments. I found for bigger paragraphs comment-press signature has some truncated characters at the end. I don not know where it does it in the process.

Comment (1)

Jese Leos

September 11, 2024

Verified user

You can locate the function used by CommentPress to generate signatures and check if the function uses methods like substr(), mb_substr() or other method that truncate the strings that are longer.

You’ll be in good company