A WordPress-centric search engine for devs and theme authors



comment_id_fields ›

Since2.7.0
Deprecatedn/a
comment_id_fields ( $post_id = 0 )
Parameters:
  • (int) $post_id Optional. Post ID. Defaults to the current post ID.
    Required: No
    Default:
See:
Defined at:
Codex:

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.


Source

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