comment_form_field_(name) filter-hookWP 3.0.0

Filters a comment form field for display.

The dynamic portion of the hook name, $name, refers to the name of the comment form field.

Possible hook names include:

Usage

add_filter( 'comment_form_field_(name)', 'wp_kama_comment_form_field_name_filter' );

/**
 * Function for `comment_form_field_(name)` filter-hook.
 * 
 * @param string $field The HTML-formatted output of the comment form field.
 *
 * @return string
 */
function wp_kama_comment_form_field_name_filter( $field ){

	// filter...
	return $field;
}
$field(string)
The HTML-formatted output of the comment form field.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

comment_form()
comment_form_field_(name)
wp-includes/comment-template.php 2667
echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";

Where the hook is used in WordPress

Usage not found.