activate_ and deactivate_ hooks not working?
Do these two hooks work?
From what I can tell, this should delete an option I previously set. However, the option is not removed from the database when I deactivate this plugin.
Also, I would like to set this plugin up so that a database table is created when the plugin is activated, but that won’t work either. The only way I can get WordPress to create a table is by checking for existence of the table when the custom admin panel loads (if the table is not in the db, it is created). I’ve tried using the activate_ hook for this and it does NOT work.
- The topic ‘activate_ and deactivate_ hooks not working?’ is closed to new replies.