Quantcast
Channel: Question and Answer » wpdb
Viewing all articles
Browse latest Browse all 44

Plugin with connection to database – Single function

$
0
0

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?


Viewing all articles
Browse latest Browse all 44

Trending Articles