How to include external library in wordpress plugin

How can I make an external PHP library available with my plugin.

Where the library files need to be placed?

2 Answers
2

The best way to include an external library is to put it in your plugins folder. Then just use require_once() wherever you need it. Depending on the size of the plugin and your type of programing this might be in the main plugin file or wherever you need that functionality.

Leave a Comment