wp-admin/includes/class-wp-list-table.php:1803Generates the columns for a single row of the table.
$itemobject|array protected function single_row_columns( $item ) { list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); foreach ( $columns as $column_name => $column_display_name ) { $classes = "$column_name column-$column_name"; if ( $primary === $column_name ) { $classes .= ' has-row-actions column-primary'; } if ( in_array( $column_name, $hidden, true ) ) { $classes .= ' hidden'; } /* * Comments column uses HTML in the display name with screen reader text. * Strip tags to get closer to a user-friendly string. */ $data = 'data-colname="' . esc_attr( wp_strip_all_tags( $column_display_name ) ) . '"'; $attributes = "class='$classes' $data"; if ( 'cb' === $column_name ) { echo '<td class="check-column">'; echo $this->column_cb( $item ); echo '</td>'; } elseif ( method_exists( $this, '_column_' . $column_name ) ) { echo call_user_func( array( $this, '_column_' . $column_name ), $item, $classes, $data, $primary ); } else { $is_primary = ( $primary === $column_name ); $tag = $is_primary ? 'th' : 'td'; $scope = $is_primary ? ' scope="row"' : ''; $aria_label = ''; if ( $is_primary ) { $label = $this->get_primary_column_aria_label( $item ); if ( '' !== $label ) { $aria_label = ' aria-label="' . esc_attr( $label ) . '"'; } } echo "<$tag $attributes$scope$aria_label>"; if ( method_exists( $this, 'column_' . $column_name ) ) { echo call_user_func( array( $this, 'column_' . $column_name ), $item ); } else { echo $this->column_default( $item, $column_name ); } echo $this->handle_row_actions( $item, $column_name, $primary ); echo "</$tag>"; } } }Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.