pre_comment_on_post action-hook . WP 2.8.0
Fires before a comment is posted.
Usage
add_action( 'pre_comment_on_post', 'action_function_name_5040' ); function action_function_name_5040( $comment_post_ID ){ // action... }
- $comment_post_ID(int)
- Post ID.
Where the hook is called
pre_comment_on_post
wp-includes/comment.php 3226
do_action( 'pre_comment_on_post', $comment_post_ID );