Other Databases

The wpdb object can be used to access any database and query any table. Absolutely no need to be WordPress related, which is very interesting. Simply create a new wpdb object: And use it in your functions as you do for the wp database:

Read More

Creating Custom Tables

Resources https://deliciousbrains.com/creating-custom-table-php-wordpress/ Create / Update A Table While not a requirement to use the wordpress dbDelta function, it is recommended when making changes to the database as it examines the current table structure, compares it to the desired table structure, and either adds or modifies the table as necessary. Table Definitions Various different column types […]

Read More