[wp-hackers] Re: wp-hackers Digest, Vol 47, Issue 43

andré renaut andre.renaut at gmail.com
Sun Dec 14 15:46:46 GMT 2008


Hi,

When activating a plugin, how can i display an error message if some system
requirements are not ok.

thanks

add_action('activate_' . 'myplugin.php',    'install');

function install() {
   if (system_requirements()) do_install();
   else                                                      // ==>  'system
requirements ko'
}


More information about the wp-hackers mailing list