do_action( 'pre_comment_on_post', int $comment_post_ID ) Fires before a comment is posted. ContentsParameters Source Related Used By Changelog User Contributed Notes Parameters $comment_post_ID (int) Post ID. Top ↑Source File: wp-includes/comment.php View on Trac Top ↑Related Top ↑Used By Used By Used By Description wp-includes/comment.php: wp_handle_comment_submission() Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. Top ↑Changelog Changelog Version Description 2.8.0 Introduced. Top ↑User Contributed Notes You must log in before being able to contribute a note or feedback.