Uses
Uses | Description |
---|---|
wp-includes/comment-template.php: get_comment_id_fields() | Retrieves hidden input HTML for replying to comments. |
Outputs hidden input HTML for replying to comments.
Adds two hidden inputs to the comment form to identify the comment_post_ID
and comment_parent
values for threaded comments.
This tag must be within the <form>
section of the comments.php
template.
(int) (Optional) Post ID. Defaults to the current post ID.
File: wp-includes/comment-template.php
function comment_id_fields( $post_id = 0 ) { echo get_comment_id_fields( $post_id ); }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_id_fields