Using $wpdb outside wordpress
-
I’m writing a plugin, but a AJAX request is calling a php file and I want to create tables and save data that have the same prefix as the other WordPress tables.
The problem is you can NOT just global $wpdb and have it work, because no other files are involved! What file should I include so that the $wpdb could be global?
- The topic ‘Using $wpdb outside wordpress’ is closed to new replies.