comment_form_default_fields WordPress Filter Hook
The comment_form_default_fields hook is used to modify the default fields for the comment form. By default, the comment form includes the fields for name, email, and website. However, you can use this hook to modify these fields or add new fields.
apply_filters( 'comment_form_default_fields', string[] $fields ) #
Filters the default comment form fields.
Parameters
- $fields
(string[])Array of the default comment fields.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |