Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Call function from an other Plugin
#1
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
Reply
#2
You should be able to call anything, plugins are all loaded in global scope.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)