Quantcast
Channel: activation – WordPress.org Forums
Viewing all articles
Browse latest Browse all 914

mumbomedia on "Let plugin only activate when conditions true"

$
0
0

Hello

I hope any expierenced user could help me.

I want to create a importer plugin.
On activation it needs to check if two other plugins (Newsletter and Membership) are exist and activated. I do this by using is_plugin_activated.

So I want to avoid activation if any required plugin isn't installed or activated, because if the plugins are missing or deactivated an import will occur in a fatal error cause I use the api of the plugins.

If anyone knows how I could archieve that in this case the activation is cancelled and a error message is displayed instead please let me know it.

I've read about trigger_error, but I think there must be a better solution.


Viewing all articles
Browse latest Browse all 914

Latest Images

Trending Articles



Latest Images