1. 首页
  2. WordPress钩子手册

comment_form_fields

apply_filters( ‘comment_form_fields’, array $comment_fields )

过滤钩子:过滤注释表单字段,包括文本区域。
Filter Hook: Filters the comment form fields, including the textarea.

目录锚点:#参数#源码#笔记


参数(Parameters)

参数 类型 说明
$comment_fields (array) 注释字段。

源码(Source)


更新版本 源码位置 使用 被使用
4.4.0 wp-includes/comment-template.php:2556 1 0

笔记(Notes)

这些是默认的注释表单字段,如下所示https://developer.wordpress.org/reference/functions/commentu表单/
将注释文本字段移到底部。

comment_form_fields 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_form_fields/