Add table to WordPress database

I want to add an extra table on my WordPress database and I intend to query it with a custom script that will be embedded to WordPress.

I'm worrying if this is a safe way to do it, or I should go with the option of adding an entirely new database, not a table on WordPress, as future updates of WordPress system might wipe my custom table? Any experience with such a scenario. Is this a valid risk/worry, or I should just create the table on the WordPress database, instead of creating another db, and connect to that new db in my custom script.

Thank you.

Topic scripts database customization Wordpress

Category Web


There is no risk in creating new table in WP Database. Infact many well known and giant plugins, like Woocomerce do this.

You can also opt for creating new database but creating new table is not at all risky...

Hope I am clear enough...

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.