Outputs hidden input HTML for replying to comments.
Description
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.
Parameters
$postint|WP_Post|nulloptional
The post the comment is being displayed for. Defaults to the current global post.Default: null
Signature, return type and hooks compared across 5 parsed releases.
6.2.0
Renamed $post_id to $post and added WP_Post support.from the docblock
2.7.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/comment-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.