comment_form_fields filter-hookWP 4.4.0

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()
comment_form_fields
wp-includes/comment-template.php 2758
$comment_fields = apply_filters( 'comment_form_fields', $comment_fields );

Where the hook is used in WordPress

Usage not found.