apply_filters( ‘comment_form_field_comment’, string $args_comment_field )

Filters the content of the comment textarea field for display.

Parameters

$args_comment_fieldstring
The content of the comment textarea field.

Source

echo apply_filters( 'comment_form_field_comment', $field );

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

  1. Skip to note 2 content
    function ardeya_textarea() {
    	$comment_field = '<textarea id="comment" placeholder="' . esc_attr__( 'Напишите комментарий', 'ardeya' ) ) . '" name="comment" cols="45" rows="8" maxlength="65525" aria-required="true" required="required"></textarea>';
    	return $comment_field;
    }
    add_filter( 'comment_form_field_comment', 'ardeya_textarea' );

You must log in before being able to contribute a note or feedback.