Plugin: deactivating functions
-
Hi. I am buidling a plugin that creates a new table and some options to the wp data base. ThusI need to eliminate the table and aoptions when the plugin is uninstalled.
Where do I hook in?
I triedif (isset($_GET[‘deactivate’]) && $_GET[‘deactivate’] == ‘true’) {
add_action(‘init’, ‘dbes_uninstall’);
}
to call the dbes_uninstall function.
Yet this doesn’t seem to work…
Any suggestion?
Thanks in advance,
Davide
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin: deactivating functions’ is closed to new replies.