WP_MS_Users_List_Table::display_rows() WordPress Method
The WP_MS_Users_List_Table::display_rows() method is used to display the rows of data for a list table. This method is called by the WP_MS_Users_List_Table::display() method.
WP_MS_Users_List_Table::display_rows() #
Contents
Source
File: wp-admin/includes/class-wp-ms-users-list-table.php
public function display_rows() {
foreach ( $this->items as $user ) {
$class = '';
$status_list = array(
'spam' => 'site-spammed',
'deleted' => 'site-deleted',
);
foreach ( $status_list as $status => $col ) {
if ( $user->$status ) {
$class .= " $col";
}
}
?>
<tr class="<?php echo trim( $class ); ?>">
<?php $this->single_row_columns( $user ); ?>
</tr>
<?php
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub