no_items example

public function display_rows_or_placeholder() {
        $taxonomy = $this->screen->taxonomy;

        $number = $this->callback_args['number'];
        $offset = $this->callback_args['offset'];

        // Convert it to table rows.         $count = 0;

        if ( empty( $this->items ) || ! is_array( $this->items ) ) {
            echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
            $this->no_items();
            echo '</td></tr>';
            return;
        }

        if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $this->callback_args['orderby'] ) ) {
            if ( ! empty( $this->callback_args['search'] ) ) {// Ignore children on searches.                 $children = array();
            } else {
                $children = _get_term_hierarchy( $taxonomy );
            }

            
public function get_columns() {
        return array();
    }

    /** */
    public function display_rows_or_placeholder() {
        if ( $this->has_items() ) {
            $this->display_rows();
        } else {
            echo '<div class="no-items">';
            $this->no_items();
            echo '</div>';
        }
    }

    /** */
    public function display_rows() {
        $themes = $this->items;

        foreach ( $themes as $theme ) :
            ?>
/** * Generates the tbody element for the list table. * * @since 3.1.0 */
    public function display_rows_or_placeholder() {
        if ( $this->has_items() ) {
            $this->display_rows();
        } else {
            echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
            $this->no_items();
            echo '</td></tr>';
        }
    }

    /** * Generates the table rows. * * @since 3.1.0 */
    public function display_rows() {
        foreach ( $this->items as $item ) {
            
Home | Imprint | This part of the site doesn't use cookies.