[wp-hackers] looking for opinions on php5-only plugins
otto at ottodestruct.com
Wed Oct 7 14:45:16 UTC 2009
I don't bother trying to support anything below PHP 5 anymore.
I have example code in the Automatic Timezone plugin (
http://wordpress.org/extend/plugins/automatic-timezone/ ) which
demonstrates how to prevent a plugin from being activated.
Using this method, you could make your plugin check for the necessary
support (like PHP 5, or whatever), and pop a message back to the user
when they try to activate it on a PHP 4 setup.
Sent from Memphis, TN, United States
More information about the wp-hackers