How to Instantiate wpdb Object in New File


I have a shared hosting account which does not permit me to connect to my databases via mysqli or PDO. However, I can install WordPress and interact with the database via the various built-in forms. Using phpMyAdmin, I am able to create new tables within the WP database. I would like to access the tables I create via my own scripts rather than what WP provides. What wp files do I need to include in order to instantiate a new wpdb object in my script (using the values defined in wp-config.php)?

Bike Tours Dragon 2 years 2020-12-18T00:10:46-05:00 0 Answers 8 views 0

Leave an answer