Displays the comments table.

Description Description

Overrides the parent display() method to render extra comments.

Top ↑

Source Source

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

	public function display() {
		wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );

		$this->display_tablenav( 'top' );

		$this->screen->render_screen_reader_content( 'heading_list' );

<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php $this->print_column_headers(); ?>

	<tbody id="the-comment-list" data-wp-lists="list:comment">
		<?php $this->display_rows_or_placeholder(); ?>

	<tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
			 * Back up the items to restore after printing the extra items markup.
			 * The extra items may be empty, which will prevent the table nav from displaying later.
			$items       = $this->items;
			$this->items = $this->extra_items;
			$this->items = $items;

		<?php $this->print_column_headers( false ); ?>


		$this->display_tablenav( 'bottom' );

Top ↑

Changelog Changelog

Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.