[wp-hackers] error message on plugin activation, how to ?

andré renaut andre.renaut at gmail.com
Sun Dec 14 21:12:32 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