Title: Requesting Hook Pre-Comment Post
Last modified: August 18, 2016

---

# Requesting Hook Pre-Comment Post

 *  Resolved [null77](https://wordpress.org/support/users/null77/)
 * (@null77)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/requesting-hook-pre-comment-post/)
 * Hey,
 * I would like to request a hook that would allow a plugin to check some stuff 
   and possibly prevent a comment being added.
 * Why? My plugin adds age, gender and location information to comments. I want 
   to ensure this info is entered *before* the comment is added to the DB.
 * I can work around this by hooking to the form’s onsubmit, or by deleting the 
   recently entered comment after hooking to the ‘comment_post’ event, but these
   are hacks, not good solutions.
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [charle97](https://wordpress.org/support/users/charle97/)
 * (@charle97)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/requesting-hook-pre-comment-post/#post-550667)
 * preprocess_comment is the hook you’re looking for.
 *  Thread Starter [null77](https://wordpress.org/support/users/null77/)
 * (@null77)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/requesting-hook-pre-comment-post/#post-550674)
 * Thanks, I guess I should have thought of using the filters.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Requesting Hook Pre-Comment Post’ is closed to new replies.

## Tags

 * [feature](https://wordpress.org/support/topic-tag/feature/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [request](https://wordpress.org/support/topic-tag/request/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 2 replies
 * 2 participants
 * Last reply from: [null77](https://wordpress.org/support/users/null77/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/requesting-hook-pre-comment-post/#post-550674)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
