comment_form_fields
Filters the comment form fields, including the textarea.
Usage
add_filter( 'comment_form_fields', 'wp_kama_comment_form_fields_filter' );
/**
* Function for `comment_form_fields` filter-hook.
*
* @param array $comment_fields The comment fields.
*
* @return array
*/
function wp_kama_comment_form_fields_filter( $comment_fields ){
// filter...
return $comment_fields;
}
- $comment_fields(array)
- The comment fields.
Changelog
| Since 4.4.0 | Introduced. |
Where the hook is called
comment_form_fields
wp-includes/comment-template.php 2787
$comment_fields = apply_filters( 'comment_form_fields', $comment_fields );