Uninstall Hook For WordPress Plugin | Paulund

When a user deletes your WordPress plugin it might be necessary that you do some processing for cleaning up the WordPress site. This is because a WordPress plugin can be used to create new data such as post types, options meta, post meta, custom tables etc. On the deleting event you may need to perform tasks such as removing this custom data the plugin has created. There are a couple of ways you can do this, you can either use the register_uninstall_hook or have a uninstall.php file in the root of your pl

Source: Uninstall Hook For WordPress Plugin | Paulund

Leave a Reply