Title: Cannot export CUSTOM donor data.
Last modified: December 2, 2023

---

# Cannot export CUSTOM donor data.

 *  Resolved [Jobst Schmalenbach](https://wordpress.org/support/users/jobst/)
 * (@jobst)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-export-custom-donor-data/)
 * This question is related to custom/extra fields on the donation forms (donor 
   AND donation meta), doing this in code (not form manager)
   **I have got working:**–
   custom fields in donor/donation part show in DONATION form correctly– fields 
   required show error when not filled and donate pressed– custom fields end up 
   in database (phpMyAdmin) for both donor and donation meta CORRECTLY– tick boxes
   show up in the export pages (donor/donation)– per donation custom fields SHOW
   up in CSV– so it’s MOST bar 1**I do not have working:**– per donor custom fields
   do NOT show up in CSV**I have followed documention:**[https://github.com/impress-org/givewp-snippet-library/blob/master/donors/add-donor-meta.php](https://github.com/impress-org/givewp-snippet-library/blob/master/donors/add-donor-meta.php)
   [https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/custom-fields-plugin.php](https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/custom-fields-plugin.php)
   [https://givewp.com/documentation/developers/how-to-create-custom-form-fields/](https://givewp.com/documentation/developers/how-to-create-custom-form-fields/)**
   The problem:**The problem is the hook ‘give_export_set_donor_data’ is never called,
   the “here i am” never shows up in the PHP log.
 *     ```wp-block-code
       add_filter( 'give_export_set_donor_data', 'give_export_set_custom_donor_data', 10, 2 );
       function give_export_set_custom_donor_data( $data, $donor ) {
        error_log("here i am");
        $phone_number = Give()->donor_meta->get_meta( $donor->id, 'give_phone', true );
        $data['phone_number'] = ! empty( $phone_number ) ? $phone_number : '- N/A - ';
        return $data;
       }
       ```
   
 * 
   What am I doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-export-custom-donor-data/#post-17253557)
 * Hi, [@jobst](https://wordpress.org/support/users/jobst/).
 * We’ve got a spot where you can ask this question directly to our development 
   team, **but the question will need to be more fleshed out there than it is here.
   I’d recommend passing along the exact code snippet you are attempting to use 
   and what results from that snippet. The more focused the question is, the more
   likely our development team will be able to step away from their busy schedules
   to help with this sort of custom code.**
 * You can reach out to them here: [https://github.com/impress-org/givewp/discussions](https://github.com/impress-org/givewp/discussions).
 * Thanks for using GiveWP! Have a great day.
 *  Thread Starter [Jobst Schmalenbach](https://wordpress.org/support/users/jobst/)
 * (@jobst)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-export-custom-donor-data/#post-17256342)
 * Thanks, done.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot export CUSTOM donor data.’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [donor](https://wordpress.org/support/topic-tag/donor/)
 * [export](https://wordpress.org/support/topic-tag/export/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jobst Schmalenbach](https://wordpress.org/support/users/jobst/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-export-custom-donor-data/#post-17256342)
 * Status: resolved