BBP_Topic_Replies_List_Table::single_row( object $item )

Generates content for a single row of the table


Description Description


Parameters Parameters

$item

(Required) The current item


Top ↑

Source Source

File: includes/admin/classes/class-bbp-topic-replies-list-table.php

	public function single_row( $item ) {

		// Author
		$classes = 'author-' . ( get_current_user_id() == $item->post_author ? 'self' : 'other' );

		// Locked
		if ( wp_check_post_lock( $item->ID ) ) {
			$classes .= ' wp-locked';
		}

		// Hierarchy
		if ( ! empty( $item->post_parent ) ) {
		    $count    = count( get_post_ancestors( $item->ID ) );
		    $classes .= ' level-'. $count;
		} else {
		    $classes .= ' level-0';
		} ?>

		<tr id="post-<?php echo esc_attr( $item->ID ); ?>" class="<?php echo implode( ' ', get_post_class( $classes, $item->ID ) ); ?>">
			<?php $this->single_row_columns( $item ); ?>
		</tr>

		<?php
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.