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.
2830*-`comment_form_field_cookies`2831*2832* @since 3.0.02833*2834* @param string$field The HTML-formatted output of the comment form field.2835*/2836echoapply_filters("comment_form_field_{$name}",$field)."\n";28372838if($last_field===$name){2839/**2840* Fires after the comment fields in the comment form, excluding the textarea.2841*2842* @since 3.0.0
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.