Using an External Library in WordPress Theme

Hi everyone,

I’m developing a WordPress theme that I plan to submit to ThemeForest. To streamline my development process and avoid repetitive coding, I’ve created an external PHP library that handles several common functions I frequently use across my themes.

My question is:

  • Is it acceptable to include this external library within my theme when submitting it to ThemeForest?

  • Are there any specific guidelines or restrictions I should be aware of regarding the use of external libraries?

  • Should I include the library’s source code within the theme package, or is it sufficient to provide instructions on how to install it separately?

  • I want to ensure my theme complies with all ThemeForest standards and best practices. Any advice or insights from experienced theme developers would be greatly appreciated.

Thanks in advance for your help!

Everything you need is here: