Support » Plugins » How to check if another plugin is active

  • Resolved yonat


    I want my plugin to show some form elements only if another plugin is active. How can I check that?

    Also, how can my plugin call a function defined in that other plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • This should work for ya:

    As for calling the function, can’t you simply check if then other plugin is active and then call the function normally?


    As for calling the function – my bad. I actually need to call it from javascript, which means I probably need to find an appropriate httprequest.

    I guess you could always write a plugin of your own that accepts an appropriate HTTP request, checks if the required plugin is active and returns a response. However, if your plugin is responsible for generating the form contents, then I can’t see why your plugin can’t check if the appropriate plugin(s) are active, before generating the form content in the first place – is it likely that a plugin could be enabled/disabled during the time that someone is viewing the form – and would potentially invalidate it?

    Thanks. Eventually I found a nice hook where I can call the function, so all is well. 🙂

    Hi 😉

    I’m sorry but the response when I use this function is :

    Fatal error: Call to undefined function is_plugin_active()

    Do you know if this function exist with wp 3.0.1 ?

    I’ve not found anithyng about an other function.

    Works for me…

    if (is_plugin_active(‘wp-cart-for-digital-products/wp_cart_for_digital_products.php’))

    doing an update on my Easy CSV Importer to allow importing to the eStore plugin. Only want user to have the options and forms if the plugin is installed.

    If anyone has not clicked, this is a perfect way to keep the interface tidy and not show a lot of things a user won’t ever use.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to check if another plugin is active’ is closed to new replies.