My plan is to send the form to a custom validation file. But then, if validation passes how do I send to to wp-comments.php? Could I just include wp-comments after my validation tests?
I’m trying to run a script for custom validation before the post collection actually reaches wp-comments.php. Do you have an idea how I should proceed?
Here are some thoughts: I could either pretend my app is wordpress by including all the files required to save a post and process my data as if it had been posted OR I could send http data to my app, pretending this time that it had been posted from new-post.php.