GetSimple Support Forum
PROBLEM Call function from an other Plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: PROBLEM Call function from an other Plugin (/showthread.php?tid=5935)



Call function from an other Plugin - mosmetic - 2014-03-22

Hi,

I have the p01-contact plugin and the MDL-newsletter plugin.

Now, i want to have a checkbox at the p01-contact form with which one can automatically apply to the newsletter managed by MDL-newsletter.

I'm coding right in the p01-contact plugin php file, no problemo Smile

But how can I call the subscribe($banem $email, $confirm) function from MDL-Newsletter plugin (in the plugins/mdl-newsletter.php file) from within the plugin p01-contact (which is the /plugins/p01-contact/p01-contact.php)

Please tell me how I do that?

I guess it must me some kind of import or something.

Thank you


RE: Call function from an other Plugin - shawn_a - 2014-03-22

You should be able to call anything, plugins are all loaded in global scope.