[wp-hackers] Hook being called twice on activate, once on deactivate

scribu scribu at gmail.com
Thu Oct 29 19:39:28 UTC 2009

A solution might be to summon wpdb, before defining the constant:

global $wpdb;

I assume your problem is caused by the different scope that the plugin is
activated in.


More information about the wp-hackers mailing list