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.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->display() : void;
Код ReviewsListTable::display() ReviewsListTable::display WC 9.7.1
<?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' ); }