comment_id_fields( int $post_id )

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.

Top ↑

See also


Top ↑

Parameters

$post_id int Optional
Post ID. Defaults to the current post ID.

Top ↑

Source

File: wp-includes/comment-template.php. View all references

function comment_id_fields( $post_id = 0 ) {
	echo get_comment_id_fields( $post_id );
}


Top ↑

Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.