Delete Data From Database Upon Plugin Deletion
-
While working out the plugin update issue I realized that when I delete the plugin the yaysmtp_email_logs table and the two options, (yaysmtp_debug and yaysmtp_settings) remain in the database.
These need to be deleted when the plugin is deleted or provided a checkbox option in the plugin settings to allow the deletion of this table and option data.
Leaving orphaned tables and data in a client’s database is not good practice.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Delete Data From Database Upon Plugin Deletion’ is closed to new replies.