Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to allow one plugin to use anothers functions
#5
mvlcek Wrote:First, all the functions in your plugins should use a plugin specific prefix/code, like add_mu_permission, check_mu_user_permission, check_mu_user_permissions.

Then any other plugin can use the functions with
Code:
if (function_exists('check_mu_user_permission')) check_mu_user_permission();

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.
Reply


Messages In This Thread
Best way to allow one plugin to use anothers functions - by mikeh - 2012-09-24, 22:29:54



Users browsing this thread: 1 Guest(s)