[wp-hackers] register_uninstall_hook VS uninstall.php
Davit Barbakadze
jayarjo at gmail.com
Sat May 8 07:20:29 UTC 2010
> Try this:
>
> // Have more than one callback attached to the uninstall hook
> function add_uninstall_hook($plugin, $callback) {
> // trigger $is_uninstallable_plugin flag
> register_uninstall_hook($plugin, '__return_false');
>
> add_action('uninstall_' . plugin_basename($plugin), $callback);
> }
>
>
> You use it exactly like register_activation_hook().
>
Looks very nice. But I don't quite understand how this may work... ? It
won't work with 2.9.2, right? Is it something from next version? What is
going to change?
--
Davit Barbakadze
More information about the wp-hackers
mailing list