Sharing code across plugins
I have several plugins the use the same functions. Currently each has a copy within the plugin's source file. This seems an unproductive way to maintain these functions (any change need to be manually copied to the other versions).
My question is on the best practice to share functions across plugins. Hopefully the suggestions will address these related issues as well:
- How to include them (what's the best way)?
- Where to store them (which folder)?
- How to distribute them through the plugin directory
- Any performance impacts?
P.S. This should probably be in the "Development" category (but unfortunately I can't post there)