Creating a Custom Table with PHP in WordPress


Have you ever wondered what it takes to create a custom table in WordPress or why you would ever want or need to? WordPress comes with many different ways to store data out-of-the-box. Luckily for us, WordPress is flexible enough that we aren’t forced to shoehorn our every need into the ready-made solutions that come with it. As a PHP application that depends on MySQL, we also have the option of creating our own tables in the database to meet our needs more precisely. Sometimes what might be a perfect solution for the MVP or 1.0 might not be the right choice as the software evolves.
In this article, we’ll walk through the process of creating a custom table, as well as an upgrade routine to boot.
Meet the Login Command
As a developer in the WordPress space, one of the things I really enjoy is contributing my own open-source projects. One of the most well-known of these (if you count GitHub stars) is my WP CLI Login Command project, which is a package for WP-CLI that allows you to create “magic” login links for your site. If you’re a Delicious Brains customer, you may have seen a link like this in some of the emails we send out; clicking it signs you into
Source: https://managewp.org/articles/16097/creating-a-custom-table-with-php-in-wordpress




source https://williechiu40.wordpress.com/2017/09/13/creating-a-custom-table-with-php-in-wordpress/