BP_Activity_List_Table::single_row( object $item )
Generate content for a single row of the table.
Description
Parameters
- $item
-
(Required) The current item.
Source
File: bp-activity/classes/class-bp-activity-list-table.php
function single_row( $item ) {
static $even = false;
if ( $even ) {
$row_class = ' class="even"';
} else {
$row_class = ' class="alternate odd"';
}
if ( 'activity_comment' === $item['type'] ) {
$root_id = $item['item_id'];
} else {
$root_id = $item['id'];
}
echo '<tr' . $row_class . ' id="activity-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $root_id ) . '">';
echo $this->single_row_columns( $item );
echo '</tr>';
$even = ! $even;
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.