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>';
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.