WP_MS_Users_List_Table::display_rows()publicWP 1.0

Method of the class: WP_MS_Users_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_MS_Users_List_Table = new WP_MS_Users_List_Table();
$WP_MS_Users_List_Table->display_rows();

WP_MS_Users_List_Table::display_rows() code WP 6.6.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
	}
}