Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: on plugin activation, create table in db


livibetter
Member

@livibetter

Here is an example for deactivation hook

//bb_register_deactivation_hook(__FILE__, 'GADeactivate'); // Bug in bbPress 0.8.3, do same thing using next line
add_action('bb_deactivate_plugin_' . bb_plugin_basename(__FILE__), 'GADeactivate');

just remove “de” from above, that should work. For example,

bb_register_activation_hook(__FILE__, 'hook_fct');

However, I haven’t used activation hook, therefore I don’t know is there a problem with it.

Skip to toolbar