I’m building a plugin to push invoices to Xero and was wondering if there was anyway of storing a comment against a transaction? I’ve looked in the wp_posts and there is no post associated with the transaction so I can’t store it in wp_comments.
Should I just add a custom table to store these comments?
Hi, I checked with a developer on this and he recommended using the esp_extra_meta DB table with the EEM_Extra_Meta model.
All the model objects have methods get_extra_meta, update_extra_meta, add_extra_meta, delete_extra_meta and all_extra_meta_array
For example, if you have the transaction object $t, you could call $t->update_extra_meta(‘comments’, ‘this is my comment’); then do $comments = $t->get_extra_meta( $t );
The support post ‘Storing additonal comments against a transaction’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.