WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created two WordPress plugins. If both plugins are installed, some beneficial cooperation could take place between the two.

So my question: what is the best way to get them to work together? How do I detect a certain plugin is enabled? How do I transmit information? I suppose I could use globals, but is there a better way?

share|improve this question
up vote 2 down vote accepted

your question depends a lot on what you want to do ..

But in general , when a plugin is loaded or executed, the functions are being "registered" in PHP server and are available for all to use (depending of course HOW you write them) ...

So for example, to detect if a plugin is enabled or installed, the other plugin could have

if (function_exists('NameOfFunctionFromPlugin1')

there is also a wordpress function to check plugin activation

<?php is_plugin_active($plugin) ?>


as for "transmitting Info" : Because the functions are available, you could use them. so for example, a value that is returned from a certain function in one plugin, can be evoked by the other , calling this function , and getting the value returned for use .

share|improve this answer
Of course, I was trying to make this far too complicated. Thanks for the answer – Peter Jan 6 '12 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.