comment_form_default_fields filter-hookWP 3.0.0

Filters the default comment form fields.

Usage

add_filter( 'comment_form_default_fields', 'wp_kama_comment_form_default_fields_filter' );

/**
 * Function for `comment_form_default_fields` filter-hook.
 * 
 * @param string[] $fields Array of the default comment fields.
 *
 * @return string[]
 */
function wp_kama_comment_form_default_fields_filter( $fields ){

	// filter...
	return $fields;
}
$fields(string[])
Array of the default comment fields.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

comment_form()
comment_form_default_fields
wp-includes/comment-template.php 2441
$fields = apply_filters( 'comment_form_default_fields', $fields );

Where the hook is used in WordPress

Usage not found.