ReviewsListTable::display()publicWC 1.0

Displays the product reviews HTML table.

Reimplements {@see WP_Comment_::display()} but we change the ID to match the one output by WP_Comments_List_Table::display(). This will automatically handle additional CSS for consistency with the comments page.

Метод класса: ReviewsListTable{}

Хуков нет.


null. Ничего (null).


$ReviewsListTable = new ReviewsListTable();
$ReviewsListTable->display() : void;

Код ReviewsListTable::display() WC 8.9.3

public function display() : void {
	$this->display_tablenav( 'top' );

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

	<table class="wp-list-table <?php echo esc_attr( 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(); ?>
			<?php $this->print_column_headers( false ); ?>

	$this->display_tablenav( 'bottom' );