WP_List_Table::display_rows_or_placeholder() – Generate the tbody element for the list table.

You appear to be a bot. Output may be restricted

Description

Generates the tbody element for the list table.

Usage

WP_List_Table::display_rows_or_placeholder();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:

1 to 9 of 9
  public function display_rows_or_placeholder() {
    if ( $this->WP_List_Table::has_items() ) {
      $this->WP_List_Table::display_rows();
    } else {
      echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->WP_List_Table::get_column_count() . '">';
      $this->WP_List_Table::no_items();
      echo '</td></tr>';
    }
  }
 

 View on GitHub View on Trac