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_2008' ); function action_function_name_2008( $comment_post_ID ){ // action... }
- $comment_post_ID(int)
- Post ID.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
pre_comment_on_post
wp-includes/comment.php 3491
do_action( 'pre_comment_on_post', $comment_post_ID );