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.
2836*-`comment_form_field_cookies`2837*2838* @since 3.0.02839*2840* @param string$field The HTML-formatted output of the comment form field.2841*/2842echoapply_filters("comment_form_field_{$name}",$field)."\n";28432844if($last_field===$name){2845/**2846* Fires after the comment fields in the comment form, excluding the textarea.2847*2848* @since 3.0.0
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.