Using External Code in a Plugin

By gversion - January 27, 2021

The issue was with how I was referencing the API credentials inside the S3 functions file. These are being pulled from the settings.dat.php file using the $SETTINGS variable, which works fine on normal pages but didn't work on the plugin. So I added

global $SETTINGS;

to the s3 functions file and now it works.

Thanks,

Greg

By Jenna - January 27, 2021

Hi Greg,

Thanks for posting your solution, it may be helpful to others in the future. I'm glad you were able to sort it out on your own.

Have a great day!

Jenna Cooke - PHP Programmer
interactivetools.com