The dynamic portion of the hook name, $name, refers to the name of the comment form field. Possible hook names include: <ul> <li>comment_form_field_comment</li> <li>comment_form_field_author</li> <li>comment_form_field_email</li> <li>comment_form_field_url</li> <li>comment_form_field_cookies</li> </ul>
Parameters
$fieldstring
The HTML-formatted output of the comment form field.
2835*-`comment_form_field_cookies`2836*2837* @since 3.0.02838*2839* @param string$field The HTML-formatted output of the comment form field.2840*/2841echoapply_filters("comment_form_field_{$name}",$field)."\n";28422843if($last_field===$name){2844/**2845* Fires after the comment fields in the comment form, excluding the textarea.2846*2847* @since 3.0.0
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.