Forcing the Uninstall Hook to fail

A client is paying good money for a custom plugin.

I want them to have the ability to deactivate it if needed (testing) but I’m worried that they might accidentally hit that “delete” link by mistake. I know I did once during development.

It’s not like they could just reinstall again from the repository.

I was wondering, if I could force the code to die() in the uninstall hook, would this prevent the deletion of the plugin itself?

I know I could just try it, and find out, but then I’d miss the opportunity to share this thought out loud with the community.

Also, by asking here, maybe someone could recommend a BETTER way than just halting the script.

Read more here:: Forcing the Uninstall Hook to fail

Leave a Reply

Your email address will not be published. Required fields are marked *