Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?

We recently deactivated the bbPress plugin because we don’t use it anymore. Immediately following that, no admin users can get into the dashboard without hitting the infamous: “You do not have sufficient permissions to access this page?” We tried removing ALL plugins to rule out a dependance from one of those, but it didn’t work. … Read more

Programmatically disable W3 Total Cache in development environment [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I’ve got two … Read more

admin_notices after register_uninstall / deactivate_hook

I’ve successfully added admin notices to display on register_activation_hook, and when the plugin updates, but I’m not seeing any way to display admin_notices after the uninstall or deactivation hooks. Is this at all possible? Alternatively can use javascript at this stage? (yes sort of). EDIT: To answer @G. M. I’ve already read the docs and … Read more

deactivated_plugin hook: get the name of the plugin

I would like that every time any plugin previously activated, a function from my plugin be called, returning (at least) the name of the plugin, or something that allows to identify it (file name?). I figured i could use the action hook “deactivated_plugin” but i’m wondering what information from the desactivated plugin is actually available? … Read more

Delete tables from database when deleting plugin

I created a plugin and want to add a function to delete my tables from the database when a user deletes my plugin. I created a function that deletes tables from the DB when a user deactivates my plugin, but I don’t want that. Here is the code: // Delete table when deactivate function my_plugin_remove_database() … Read more