I'm creating a plugin, and I want the activation to fail if they don't meet some of the required server configurations. My plugin requires that the user have the CURL module installed and be using PHP5.
Is there any way to do this?
I'm creating a plugin, and I want the activation to fail if they don't meet some of the required server configurations. My plugin requires that the user have the CURL module installed and be using PHP5.
Is there any way to do this?
of course there is.
how to check is cURL is installed:
if (function_exists('curl_open') ....
you can google how to find the php version, its not THAT hard.
Yes, I understand that, but I want the activation of my plugin to fail if they don't have those components.
have you done any reading?
http://codex.wordpress.org/Function_Reference/register_activation_hook
Yes, I have read that and I do use it, but that only runs my activation function. In no way what-so-ever does it tell me how to STOP the activation from occurring if they do not meet the checks I would like to impose.
I'm still looking for some help about this. I'm having some users that are getting mad at me because they install my plugin, but then get fail errors. Any help would be appreciated.
Thanks!
@Wild
Did you ever find a solution to this? I've been looking, and haven't found a clean way to both display an error message, and keep the plugin from activating.
Sob, me neither :(
This topic has been closed to new replies.