Context: I need to create a form with a lot of settings and quite a few fields (20+) for the site, and not install the plugin and modify the hell out of it (or by studying the plugin API), I decided to write my own plugin. Since I am doing this from scratch, the question of data storage should be answered.
Most people will suggest using a personalized message type and metadata rather than a user table, and while I am familiar with custom message types and taxonomies, etc. I wonder if this is better for pure data storage, which is equal to the log.
The form is one-time, and the data that I store will not be available at the front end of the site and will only be displayed in WP-admin, and this will most likely be the only page with a filtered table.
So the question is, does this require the use of a custom message type and metadata, or should I just create a table and use the $ wpdb class as this simplifies CRUD and still adheres to the "Wordpress way" to accomplish things.
Reading: This post makes a good example for a user table, especially since their example concerns the storage of personal data, efficiency and privacy issues. This question , which was answered several years ago, has the opposite opinion, but the precedent was different, since the stored data was for public display.
source share