Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

ti2m on "Trigger plugin delete without proper file permissions"

$
0
0

My plugin comes with custom tables which I want to delete when the plugin gets deleted, not when it just gets deactivated. I though I could use the deactivation and uninstall hook for this. Unfortunately the uninstall hook does not get triggered when wordpress can't delete the according plugin files.

For me, deleting tables + settings and files are two different things. For a user who has access to the files, but no FTP access, he is able to delete the files manually, but he will be left with the tables. Am I missing something? Searched the codex and looked it up in "wordpress professional", but right now it looks like the uninstall hook gets only triggered after file delete permissions are checked???

Thanks for a hint


Viewing all articles
Browse latest Browse all 8245

Trending Articles