comment_form_field_comment хук-фильтрWP 3.0.0

Filters a comment form field for display.

Это один из вариантов динамического хука comment_form_field_(name)

Использование

add_filter( 'comment_form_field_comment', 'wp_kama_comment_form_field_filter' );

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

	// filter...
	return $field;
}
$field(строка)
The HTML-formatted output of the comment form field.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.