print_table_description example


    public function display() {
        $singular = $this->_args['singular'];

        $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_table_description(); ?> <thead> <tr> <?php $this->print_column_headers(); ?> </tr> </thead> <tbody id="the-list" <?php         if ( $singular ) {
            echo " data-wp-lists='list:$singular'";
        }
        
?> <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> <?php         if ( ! isset( $_GET['orderby'] ) ) {
            // In the initial view, Comments are ordered by comment's date but there's no column for that.             echo '<caption class="screen-reader-text">' .
            /* translators: Hidden accessibility text. */
            __( 'Ordered by Comment Date, descending.' ) .
            '</caption>';
        } else {
            $this->print_table_description();
        }
        ?> <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> <tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
Home | Imprint | This part of the site doesn't use cookies.