I'm making a plugin which stores referrer data for comments. I already have my database table created, and the data is being stored correctly when a comment is made.
Now I would like to attach a custom div to the comment block for each comment. How would I add a filter to the comment loop? I want to say "if this comment ID has a referrer logged in my table, then print out the referrer in my special div". I can write the function myself, I just need help on where to inject my function.