Should plugin use own db table or custom post type / postmeta?
-
Hello,
I am considering writing a very simple PayPal integration plugin. I have looked at other PayPal IPN plugins, and one used a custom post type with postmeta and taxonomy terms while the other used a custom db table.
I have also read https://codex.www.ads-software.com/Writing_a_Plugin#Saving_Plugin_Data_to_the_Database , but I am still unclear as to which approach would be easiest/best.
At that URL, it is recommended to use a new, custom database table for, “the type of data that will grow as time goes on, and that doesn’t have individual names.” That confuses me. What is an, “individual name”? Name of what?
To me, it just seems like a kludge to put merchant transaction data into the posts and postmeta tables. But, is that actually acceptable?
As I mentioned, this is intended to be a very simple plugin. It will not be for an e-commerce shop — more along the lines of membership subscriptions.
What do you, who I’m sure are more expert than me, think?
Lee
P.S. I wish this forum had a search feature.
- The topic ‘Should plugin use own db table or custom post type / postmeta?’ is closed to new replies.