Description
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 );