[wp-hackers] register_uninstall_hook VS uninstall.php

scribu scribu at gmail.com
Fri May 7 17:07:52 UTC 2010

On Fri, May 7, 2010 at 7:56 PM, Dion Hulse (dd32) <wordpress at dd32.id.au>wrote:

> And no, You cannot use array(&$this in uninstall hooks, the uninstall hook
> is stored within the database, its not determined at run time.

Actually, you can, but it causes an extra SQL query on each page load.

Also, you can only use _one_ hook with register_uninstall_hook.

Related discussion:



More information about the wp-hackers mailing list