WP_MS_Users_List_Table::display_rows
Generates the list table rows.
Method of the class: WP_MS_Users_List_Table{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_MS_Users_List_Table = new WP_MS_Users_List_Table(); $WP_MS_Users_List_Table->display_rows();
Changelog
| Since 3.1.0 | Introduced. |
WP_MS_Users_List_Table::display_rows() WP MS Users List Table::display rows code WP 7.0.2
<?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
}
}