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 );
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。