comment_form_fields WordPress Filter Hook
The comment_form_fields hook is used to modify the fields displayed in the comment form. By default, the comment form includes the fields for name, email, and website. However, using this hook, you can add or remove fields as well as reorder them. This hook also allows you to modify the default values for the fields.
apply_filters( 'comment_form_fields', array $comment_fields ) #
Filters the comment form fields, including the textarea.
Parameters
- $comment_fields
(array)The comment fields.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |