Title: Separate donation DB table
Last modified: July 16, 2017

---

# Separate donation DB table

 *  Resolved [audymatic](https://wordpress.org/support/users/audymatic/)
 * (@audymatic)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/separate-donation-db-table/)
 * Hey,
 * Is it possible to setup a function or something that inserts all of the donation
   data into it’s own database table separate from the WordPress wp_postmeta table?
 * I’m going to need to do a lot of manipulation and querying of the data at some
   point and it would make my life MUCH easier.
 * Thanks,
    Stephen

Viewing 1 replies (of 1 total)

 *  [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * (@ericdaams)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/separate-donation-db-table/#post-9341837)
 * Hi Stephen,
 * It is possible, if you’re comfortable with writing PHP. I would recommend using
   the `charitable_after_save_donation` hook to grab the existing donation data 
   and then store it in your own custom database table. See [https://github.com/Charitable/Charitable/blob/master/includes/donations/class-charitable-donation-processor.php#L489](https://github.com/Charitable/Charitable/blob/master/includes/donations/class-charitable-donation-processor.php#L489)
 * Cheers,
    Eric

Viewing 1 replies (of 1 total)

The topic ‘Separate donation DB table’ is closed to new replies.

 * ![](https://ps.w.org/charitable/assets/icon-128x128.jpg?rev=1225178)
 * [Charitable - Donation Plugin for WordPress - Fundraising with Recurring Donations & More](https://wordpress.org/plugins/charitable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/charitable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/charitable/)
 * [Active Topics](https://wordpress.org/support/plugin/charitable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/charitable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/charitable/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/separate-donation-db-table/#post-9341837)
 * Status: resolved