Where could I see uninstallation directives for a plugin?

I have a plugin named "Wordfence" I want to remove. I need to remove it manually due to what might be a bug in the plugin. How Could I see what files and tables (or data inside tables) the uninstallation process deletes?

I mean, generally in Wordpress, under what php file, plugins usually have their installation directives?



WordPress uses two methods to unistall plugin:

  1. uninstall.php file in plugin's root folder. If file exists, it is executed and second method is not used.
  2. A function registered by plugin via register_uninstall_hook(). You should search it in plugin's php files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.