Generates two hidden inputs for the comment form to identify the comment_post_ID
and comment_parent
for threaded comments. This tag must be within the <form>
section of comments.php
.
<?php comment_id_fields( $id ); ?>
<?php comment_id_fields(); ?>
This function does not return a value.
See the source of comment_form() as an example of usage within a comment form.
comment_id_fields() is located in wp-includes/comment-template.php
.