Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::display
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.
Method of the class: ReviewsListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->display() : void;
ReviewsListTable::display() ReviewsListTable::display code WC 10.3.5
<?php
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() ) ); ?>">
<thead>
<tr>
<?php $this->print_column_headers(); ?>
</tr>
</thead>
<tbody id="the-comment-list" data-wp-lists="list:comment">
<?php $this->display_rows_or_placeholder(); ?>
</tbody>
<tfoot>
<tr>
<?php $this->print_column_headers( false ); ?>
</tr>
</tfoot>
</table>
<?php
$this->display_tablenav( 'bottom' );
}