Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.1k views
in Plugins by

Hello, 

Is there any way to use qa_opt() function in non-system php file in plugin folder? Means I am creating one plugin which has additional php file and doesn't have any q2a module class etc but just simple php file.

Q2A version: 1.5.3

1 Answer

0 votes
by
If you are including the file from one of the plugin files, then qa_opt should be available.

If it's a completely standalone file, you can just make a regular database connection with mysqli_connect and select the field(s) from the qa_options table.
by
Okay so lets say for example if I have a file called config.php where all my script config settings are there and that file if I include into any of plugin file ( either layer, module, page etc) than it should work?
by
Yeah it would work then.
by
Ok cool.. will try and get back to you with result.. Thank you so much for help.. :)
...