WP_Comments_List_Table::column_default
Method of the class: WP_Comments_List_Table{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$WP_Comments_List_Table = new WP_Comments_List_Table(); $WP_Comments_List_Table->column_default( $item, $column_name );
- $item(WP_Comment) (required)
- The comment object.
- $column_name(string) (required)
- The custom column's name.
Changelog
| Since 5.9.0 | Introduced. |
| Since 5.9.0 | Renamed $comment to $item to match parent class for PHP 8 named parameter support. |
WP_Comments_List_Table::column_default() WP Comments List Table::column default code WP 6.9.1
public function column_default( $item, $column_name ) {
// Restores the more descriptive, specific name for use within this method.
$comment = $item;
/**
* Fires when the default column output is displayed for a single row.
*
* @since 2.8.0
*
* @param string $column_name The custom column's name.
* @param string $comment_id The comment ID as a numeric string.
*/
do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
}