October 2018
Beginner
300 pages
8h 34m
English
There's a big difference between deactivating and uninstalling a plugin. Cleaning resources should only be done upon deactivation. WordPress provides two methods for implementing the uninstallation process. The first method is using a built-in function called register_uninstall_hook to handle the uninstall process. This works similar to the technique we used in activation, through a callback function. The second method is using a file called uninstall.php inside the root folder of the plugin. In this plugin, we are going to use the latter technique with the uninstall.php file.
Read now
Unlock full access