On this page
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_commentcomment_form_field_authorcomment_form_field_emailcomment_form_field_urlcomment_form_field_cookies
Parameters
$fieldstring-
The HTML-formatted output of the comment form field.
Source
File: wp-includes/comment-template.php. View all references
echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";
Related
Used By
| Used By | Description |
|---|---|
| comment_form() wp-includes/comment-template.php | Outputs a complete commenting form for use within a template. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_form_field_name