WP_List_Table::display_rows_or_placeholder()
Generates the tbody element for the list table.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WP_List_Table = new WP_List_Table(); $WP_List_Table->display_rows_or_placeholder();
Список изменений
С версии 3.1.0 | Введена. |
Код WP_List_Table::display_rows_or_placeholder() WP List Table::display rows or placeholder WP 6.1.1
public function display_rows_or_placeholder() { if ( $this->has_items() ) { $this->display_rows(); } else { echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">'; $this->no_items(); echo '</td></tr>'; } }