2012-09-24, 21:43:18
I am wondering what the best method is to allow all installed plugins use a function from one plugin.
For my Multi User plugin I have 3 plugins that other plugins can use:
Now this worked fine when my blog plugin used add_mu_permission() to add permissions and the other two to retrieve them. However, I have another plugin of mine, named "lead_management" in which the mentioned functions do not work. They seem be not defined yet. If I try to check to see if they are undefined and define them, the multi user plugin would throw an error as it would be trying to re-declare the function.
For my Multi User plugin I have 3 plugins that other plugins can use:
- add_mu_permission()
- check_user_permission()/*]
- check_user_permissions()
Now this worked fine when my blog plugin used add_mu_permission() to add permissions and the other two to retrieve them. However, I have another plugin of mine, named "lead_management" in which the mentioned functions do not work. They seem be not defined yet. If I try to check to see if they are undefined and define them, the multi user plugin would throw an error as it would be trying to re-declare the function.