comment_on_draft action-hookWP 1.5.1

Fires when a comment is attempted on a post in draft mode.

Usage

add_action( 'comment_on_draft', 'wp_kama_comment_on_draft_action' );

/**
 * Function for `comment_on_draft` action-hook.
 * 
 * @param int $comment_post_ID Post ID.
 *
 * @return void
 */
function wp_kama_comment_on_draft_action( $comment_post_ID ){

	// action...
}
$comment_post_ID(int)
Post ID.

Changelog

Since 1.5.1 Introduced.

Where the hook is called

wp_handle_comment_submission()
comment_on_draft
wp-includes/comment.php 3469
do_action( 'comment_on_draft', $comment_post_ID );

Where the hook is used in WordPress

Usage not found.