Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need to be able to add some data (text/images) to each comment in the comments section through a plugin. What I'm trying to do is actually very similar to the way the stack exchange sites have their little user profiles in questions/answers that show a user's points and badge count. I've tried using a few filters (most recently "comment_author" - yeah, didn't work too well) but haven't found something that would work. I need a spot where I can inject some information about the user that won't mess up other parts of the blog (like admin sections) and that will hopefully play nice with whatever theme they are using.

I realize starting out that this probably won't work for every theme but hopefully there is an answer for those themes that stick to the general blog layout.

share|improve this question
add comment

2 Answers

You tried 'comment_author', so maybe you are aware of 'comments_array' filter hook? It hands you all the content information in an array. Maybe you could use the array and add your info to it.

Or maybe try using the comment_form hook to redirect to your own form.

share|improve this answer
add comment

I'm not too sure that this is what you are looking for, but if you use a third party comment management system like Disqus wouldn't it work?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.