In my widget plugin a javascript function calls a php file by the ajax request.
That php file is supposed to connect to the database and retrieve some data in JSON format.
I would like to reuse my connection settings and use some of the existing functions from /qa-include/qa-db-selects.php. Is there any way I could do that and how do I access that functions form my php file.
Thank you.