WP_MS_Users_List_Table::display_rows
Generates the list table rows.
Метод класса: WP_MS_Users_List_Table{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_MS_Users_List_Table = new WP_MS_Users_List_Table(); $WP_MS_Users_List_Table->display_rows();
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_MS_Users_List_Table::display_rows() WP MS Users List Table::display rows WP 7.0
<?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
}
}