Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to allow one plugin to use anothers functions
#6
mikeh Wrote:So from my understanding, in the plugin that is using the other plugins functions, I should create a function and put all references to the other plugins functions in it. Then call that function with the common hook.

Yes, when you encapsulate the calls to other plugins in your own functions, you can more easily add support for plugins with similar functionality. Of course, if you call this other plugin's function just once, this might just be overhead.

Just don't try to define a function, if it is not defined yet - it won't work consistently.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Best way to allow one plugin to use anothers functions - by mvlcek - 2012-09-24, 22:52:35



Users browsing this thread: 1 Guest(s)