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

---

# WP_Comments_List_Table::column_cb( WP_Comment $item )

## In this article

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

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

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

 `$item`[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_cb/?output_format=md#source)󠁿

    ```php
    public function column_cb( $item ) {
    	// Restores the more descriptive, specific name for use within this method.
    	$comment = $item;

    	if ( $this->user_can ) {
    		?>
    	<input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
    	<label for="cb-select-<?php echo $comment->comment_ID; ?>">
    		<span class="screen-reader-text">
    		<?php
    		/* translators: Hidden accessibility text. */
    		_e( 'Select comment' );
    		?>
    		</span>
    	</label>
    		<?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#L925)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-comments-list-table.php#L925-L942)

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

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

Displays translated text.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_cb/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.9.0](https://developer.wordpress.org/reference/since/5.9.0/) | Introduced. |

## 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_cb%2F)
before being able to contribute a note or feedback.