comment_form_field_comment
Filter HookDescription
Filters the content of the comment textarea field for display.Hook Information
File Location |
wp-includes/comment-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2809 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$args_comment_field
|
The content of the comment textarea field. |
Usage Examples
Basic Usage
<?php
// Hook into comment_form_field_comment
add_filter('comment_form_field_comment', 'my_custom_filter', 10, 1);
function my_custom_filter($args_comment_field) {
// Your custom filtering logic here
return $args_comment_field;
}
Source Code Context
wp-includes/comment-template.php:2809
- How this hook is used in WordPress core
<?php
2804 *
2805 * @since 3.0.0
2806 *
2807 * @param string $args_comment_field The content of the comment textarea field.
2808 */
2809 echo apply_filters( 'comment_form_field_comment', $field );
2810
2811 echo $args['comment_notes_after'];
2812
2813 } elseif ( ! is_user_logged_in() ) {
2814
PHP Documentation
<?php
/**
* Filters the content of the comment textarea field for display.
*
* @since 3.0.0
*
* @param string $args_comment_field The content of the comment textarea field.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/comment-template.php
Related Hooks
Related hooks will be displayed here in future updates.