comment_form_field_{$name} WordPress Filter Hook
The `comment_form_field_{$name}` hook is used to add additional fields to the comment form. This hook is useful for customizing the comment form to include additional data, such as a rating or custom fields.
apply_filters( "comment_form_field_{$name}", string $field ) #
Filters a comment form field for display.
Description
The dynamic portion of the hook name, $name
, refers to the name of the comment form field.
Possible hook names include:
comment_form_field_comment
comment_form_field_author
comment_form_field_email
comment_form_field_url
comment_form_field_cookies
Parameters
- $field
(string)The HTML-formatted output of the comment form field.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |