comment_form_fields filter-hook . WP 4.4.0
Filters the comment form fields, including the textarea.
Usage
add_filter( 'comment_form_fields', 'filter_function_name_3964' ); function filter_function_name_3964( $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 2605
$comment_fields = apply_filters( 'comment_form_fields', $comment_fields );