[wp-hackers] How do I prevent activation of plugin is below PHP 5?

Piyush Mishra me at piyushmishra.com
Fri Jul 9 06:57:40 UTC 2010

make an activation hook to check version and keep an option or
something for activation. set that to 0 with the hook if php version
is less thn 5 for more thn 5 set it to 1 and use that as a check...

On 7/9/10, Raj <list at expost.org> wrote:
> Hi all,
> I am getting a lot of emails from users of my plugin who are running it on
> PHP 4.x and are seeing errors. How do I prevent the plugin from being
> activated if the version of PHP is below PHP 5-? What should a plugin do to
> not get activated? Meaning.. to signal to Wordpress that the activation
> should be cancelled.
> Raj
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Piyush Mishra
Life's Short, Live it to the maximum

More information about the wp-hackers mailing list