# give/4.18.0/src/Donors/ListTable/DonorsListTable.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 65 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Donors/ListTable/DonorsListTable.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Donors/ListTable/DonorsListTable.php
- Modified: 2025-10-29T20:17:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Donors/ListTable/DonorsListTable.php#L10-L20`.

```php
<?php

namespace Give\Donors\ListTable;

use Give\Donors\ListTable\Columns\DateCreatedColumn;
use Give\Donors\ListTable\Columns\DonationRevenueColumn;
use Give\Donors\ListTable\Columns\DonationCountColumn;
use Give\Donors\ListTable\Columns\DonorInformationColumn;
use Give\Donors\ListTable\Columns\DonorTypeColumn;
use Give\Donors\ListTable\Columns\IdColumn;
use Give\Donors\ListTable\Columns\LatestDonationColumn;
use Give\Framework\ListTable\ListTable;

/**
 * @since 2.24.0
 */
class DonorsListTable extends ListTable
{
    /**
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function id(): string
    {
        return 'donors';
    }

    /**
     * @since 4.12.0 Reorder DonorType column
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function getDefaultColumns(): array
    {
        return [
            new IdColumn(),
            new DonorInformationColumn(),
            new DonorTypeColumn(),
            new DonationRevenueColumn(),
            new DonationCountColumn(),
            new LatestDonationColumn(),
            new DateCreatedColumn(),
        ];
    }

    /**
     * @since 4.12.0 Remove date created column
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function getDefaultVisibleColumns(): array
    {
        return [
            DonorInformationColumn::getId(),
            DonationRevenueColumn::getId(),
            DonationCountColumn::getId(),
            LatestDonationColumn::getId(),
            DonorTypeColumn::getId(),
        ];
    }
}

```
