I am writing a media plugin that uses custom tables to store its contents. (eg not the post tables where wordpress stores it attachment data). Now i'm looking for a way to use the default wordpress comment system to add comments to it. (These comments will not be in the regular comment table but also a custom table.
I need two things:
- A hook that allows me to intercept the comment submit and process it with my own code if criteria are met. The criteria itself is arbitrary and not important, just need a way to get to the post data before Wordpress processes it.
- A filter that allows me to replace the wp_list_comments() data with my own tabledata.
It's a hacky idea, I know, but the post/attachment table is too limiting for what I need. Any ideas?