hellocoop / wordpress

A login and registration WordPress plugin for the Hellō service.
4 stars 2 forks source link

remove client id when plugin is deleted #48

Closed mscurtescu closed 1 year ago

mscurtescu commented 1 year ago

Is your feature request related to a problem? Please describe.

Once a client id is configured through Quickstart there is no way to remove the client id so Quickstart can be performed again. Plugin related settings are preserved in the database.

Describe the solution you'd like

When the plugin is deleted (aka uninstalled) all the plugin specific options should be deleted, most important the client id.

The register_uninstall_hook() could be implemented and the reset performed there. Or a uninstall.php file could be added, which is the recommended way based on this article: https://wpmudev.com/blog/activate-deactivate-uninstall-hooks/

Describe alternatives you've considered

Add an explicit reset action in the plugin settings page.

mscurtescu commented 1 year ago

Already done, an uninstall hook already registered.