comment_id_fields

函数


comment_id_fields ( $post_id = 0 )
参数
  • (int)
    $post_id
    Optional. Post ID. Defaults to the current post ID.
    Required:
相关
  • get_comment_id_fields()
定义位置
  • wp-includes/comment-template.php
    , line 1969
引入
2.7.0
弃用

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 “ section of the `comments.php` template.

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