GetSimple Support Forum

Full Version: Call function from an other Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
You should be able to call anything, plugins are all loaded in global scope.