Title: WP_Comments_List_Table::column_comment
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Comments_List_Table::column_comment( WP_Comment $comment )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#wp--skip-link--target)

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#parameters)󠁿

 `$comment`[WP_Comment](https://developer.wordpress.org/reference/classes/wp_comment/)
required

The comment object.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#source)󠁿

    ```php
    public function column_comment( $comment ) {
    	echo '<div class="comment-author">';
    		$this->column_author( $comment );
    	echo '</div>';

    	if ( $comment->comment_parent ) {
    		$parent = get_comment( $comment->comment_parent );

    		if ( $parent ) {
    			$parent_link = esc_url( get_comment_link( $parent ) );
    			$name        = get_comment_author( $parent );
    			printf(
    				/* translators: %s: Comment link. */
    				__( 'In reply to %s.' ),
    				'<a href="' . $parent_link . '">' . $name . '</a>'
    			);
    		}
    	}

    	comment_text( $comment );

    	if ( $this->user_can ) {
    		/** This filter is documented in wp-admin/includes/comment.php */
    		$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
    		?>
    	<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    		<textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></textarea>
    		<div class="author-email"><?php echo esc_html( $comment->comment_author_email ); ?></div>
    		<div class="author"><?php echo esc_html( $comment->comment_author ); ?></div>
    		<div class="author-url"><?php echo esc_url( $comment->comment_author_url ); ?></div>
    		<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    	</div>
    		<?php
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-comments-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-comments-list-table.php#L947)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-comments-list-table.php#L947-L981)

## 󠀁[Hooks](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#hooks)󠁿

 [apply_filters( ‘comment_edit_pre’, string $comment_content )](https://developer.wordpress.org/reference/hooks/comment_edit_pre/)

Filters the comment content before editing.

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Comments_List_Table::column_author()](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_author/)`wp-admin/includes/class-wp-comments-list-table.php` |  | 
| [esc_textarea()](https://developer.wordpress.org/reference/functions/esc_textarea/)`wp-includes/formatting.php` |

Escaping for textarea values.

  | 
| [get_comment_link()](https://developer.wordpress.org/reference/functions/get_comment_link/)`wp-includes/comment-template.php` |

Retrieves the link to a given comment.

  | 
| [comment_text()](https://developer.wordpress.org/reference/functions/comment_text/)`wp-includes/comment-template.php` |

Displays the text of the current comment.

  | 
| [get_comment_author()](https://developer.wordpress.org/reference/functions/get_comment_author/)`wp-includes/comment-template.php` |

Retrieves the author of the current comment.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [esc_url()](https://developer.wordpress.org/reference/functions/esc_url/)`wp-includes/formatting.php` |

Checks and cleans a URL.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  | 
| [get_comment()](https://developer.wordpress.org/reference/functions/get_comment/)`wp-includes/comment.php` |

Retrieves comment data given a comment ID or comment object.

  |

[Show 5 more](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_comment/?output_format=md#)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_comments_list_table%2Fcolumn_comment%2F)
before being able to contribute a note or feedback.