WP_MS_Sites_List_Table::display_rows() WordPress Method
The WP_MS_Sites_List_Table::display_rows() method is used to display the list of sites on a Multisite installation. This method is called by the WP_MS_Sites_List_Table::display() method, which is used to display the list table.
WP_MS_Sites_List_Table::display_rows() #
Contents
Source
File: wp-admin/includes/class-wp-ms-sites-list-table.php
public function display_rows() { foreach ( $this->items as $blog ) { $blog = $blog->to_array(); $class = ''; reset( $this->status_list ); foreach ( $this->status_list as $status => $col ) { if ( 1 == $blog[ $status ] ) { $class = " class='{$col[0]}'"; } } echo "<tr{$class}>"; $this->single_row_columns( $blog ); echo '</tr>'; } }
Expand full source codeCollapse full source codeView on TracView on GitHub