apply_filters( 'comment_form_field_comment', string $args_comment_field )

Filters the content of the comment textarea field for display.


Parameters

$args_comment_field string
The content of the comment textarea field.

Top ↑

Source

File: wp-includes/comment-template.php. View all references

echo apply_filters( 'comment_form_field_comment', $field );


Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by lincaseidhe
    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.