comment_on_draft action-hook . WP 1.5.1
Fires when a comment is attempted on a post in draft mode.
Usage
add_action( 'comment_on_draft', 'action_function_name_8991' ); function action_function_name_8991( $comment_post_ID ){ // action... }
- $comment_post_ID(int)
- Post ID.
Where the hook is called
comment_on_draft
wp-includes/comment.php 3197
do_action( 'comment_on_draft', $comment_post_ID );