Support » Plugin: Login IP & Country Restriction » ENHANCEMENT: Delete options during uninstallation

  • Resolved w3bdesign

    (@w3bdesign)


    Hi,

    I took a look at your code and noticed that you are deleting the options during deactivation, which is not considered a WordPress best-practice.

    I suggest that you transfer the content of deactivate_plugin() to uninstall.php and run it there instead.

    Otherwise people lose all their settings whenever they deactivate the plugin, which is usually not something you want to do.

Viewing 1 replies (of 1 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi,

    Thank you for the suggestion, this is included as an option in the latest release.

    Regards,
    Iulia

Viewing 1 replies (of 1 total)
  • The topic ‘ENHANCEMENT: Delete options during uninstallation’ is closed to new replies.