Creating custom tables
In typical circumstances, we create the database tables manually before moving onto the implementation. With the WordPress plugin-based architecture, it's certain that we might need to create custom tables using plugins in the later stages of the projects. Creating custom tables through plugins involves certain predefined procedures recommended by WordPress. Since table creation is a one-time task, we can implement the process on plugin activation or installation. This process is similar to the user role creation process in Chapter 2, Implementing Membership Roles, Permissions, and Features.
We will be using activation-based table creation in this book. However, you can try the installation-based table creation to cater ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access