i need to write a custom function for givewp plugin
i need to write a custom function for givewp plugin
these the function from the plugin but i can not edit in the plugin file so i need to create a custom function to add a phone number code without edit this function on it plugin file
public function csv_cols(): array
{
return $this->flattenAddressColumn(
array_intersect_key([
'full_name' => __('Name', 'give'),
'email' => __('Email', 'give'),
'address' => [
'address_line1' => __('Address', 'give'),
'address_line2' => __('Address 2', 'give'),
'address_city' => __('City', 'give'),
'address_state' => __('State', 'give'),
'address_zip' => __('Zip', 'give'),
'address_country' => __('Country', 'give'),
],
'userid' => __('User ID', 'give'),
'donations' => __('Number of donations', 'give'),
'donation_sum' => __('Total Donated', 'give'),
'give_phone' => __('Phone', 'give'),`these is added code*`
], $this->postedData['give_export_columns'])
);
}
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand