Skip to content

[Custom donor table] the hook should have the donor list #6090

Open
@Genevieve-K

Description

@Genevieve-K

User Story

As a developer, I want to add a column in the donor table in the admin interface.

Details

class-donor-table.php file:
I can add a colum title with give_list_donors_columns filter, and add data with give_donors_column_query_data filter .
But I don't know the real donor list;
lines 433-435:
// Get donor query. $args = $this->get_donor_query(); $donors = Give()->donors->get_donors( $args );
I don't have access to the method get_donor_query(). I tried to define a class which extends the Give_Donor_List_Table class, but it's too difficult to define it when the Give_Donor_List_Table class is defined and the filter is not yet applied.

Suggestion: add the variable donors to the filter:

line 459 return apply_filters( 'give_donors_column_query_data', $data, $donors );

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-fresh"Keep Fresh" issues should not be marked as stale.type: enhancementAn improvement to existing user-facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions