WP_Themes_List_Table::display_rows_or_placeholder() WordPress Method

The WP_Themes_List_Table::display_rows_or_placeholder() method is used to either display a list of themes, or a "no themes" message, depending on whether there are any themes available. This method is used by the WP_Themes_List_Table::display() method to display a list of themes.

WP_Themes_List_Table::display_rows_or_placeholder() #


Source

File: wp-admin/includes/class-wp-themes-list-table.php

	public function display_rows_or_placeholder() {
		if ( $this->has_items() ) {
			$this->display_rows();
		} else {
			echo '<div class="no-items">';
			$this->no_items();
			echo '</div>';
		}
	}

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.