• Resolved ulafox

    (@xintv123)


    The plug-in does not provide an uninstall file, is it not adding data to the database? How can I uninstall completely correctly?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ulafox

    (@xintv123)

    Sorry, I just saw the uninstall hook in the file

    Plugin Author christophrado

    (@christophrado)

    Sorry for the late reply, wasn’t getting notifications. Glad you resolved it yourself. The plugin does indeed remove any database options on uninstall. ??

    Thread Starter ulafox

    (@xintv123)

    Sorry, I still think it’s reasonable to use uninstall. PHP or uninstall hook. Because sometimes I need to temporarily disable the plug-in when debugging the website, but after it is enabled again, the previous settings are gone. I tried to use the unload hook to add it to the code, but WordPress reported an error, indicating that the unload hook does not support dynamic classes, and static classes must be used. I don’t know much about the code, so I hope to find an appropriate method to solve this problem. Can you give me a temporary solution? Looking forward to your reply, thank you!

    Plugin Author christophrado

    (@christophrado)

    Oh, so that’s a different question. Right now, the plugin only uses the deactivation hook, which indeed deletes the plugin settings on deactivation rather uninstall. I’ll see if I can add the uninstall process in a future version and move the option deleting over to that.

    If you’re debugging, it should be sufficient to only disable certain options that might be related to your problem. Unbloater only activates existing hooks and filters, so it’s very unlikely to be interfering with other plugins if a specific option isn’t activated (e.g. if the Application Passwords options are off, no other option will likely interfer with plugins that use Application Passwords).

    If you’d still like to be able to preserve the options during deactivation in the current version, you’d need to be comfortable with tinkering with database options. The settings are stored in a single option (unbloater_settings) in wp_options that you can easily copy before deactivation and later paste back in.

    Thread Starter ulafox

    (@xintv123)

    Sorry, I just saw the email, thank you for the scheme, but this scheme may not be suitable for me, looking forward to the next update

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to uninstall properly’ is closed to new replies.