[Custom donor table] the hook should have the donor list #6090
Labels
keep-fresh
"Keep Fresh" issues should not be marked as stale.
type: enhancement
An improvement to existing user-facing functionality
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 withgive_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 theGive_Donor_List_Table
class, but it's too difficult to define it when theGive_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 );
The text was updated successfully, but these errors were encountered: