UnInstallation of a Plugin from a developers perspective - The correct and clean method
I think a good developer should provide the uninstallation in the safest and cleanest possible way.
I downloaded various plugins today to understand the process, but everything was very confusing. I found that many plugins are using both uninstall.php files and
register_uninstall_hook(__FILE__, 'pluginprefix_function_to_run');
Is it correct?
because the link that I have provided above says that these two are two different methods. so what is correct using either registration hook or uninstall.php or both?
Topic uninstallation plugin-development plugins Wordpress
Category Web