I’m creating a personal plugin with more files and I need to connect to an external database with WPDB. At the moment I’m repeating “new wpdb(…)” in every function, in every file, of my plugin. Is there any way to put this instruction just ONE time?
↧