Hallo,
I’m sure what you are asking? IF you deactivate a plugin it will be deactivate. You are asking the user to give their reason why they deactivate it by email. That does not sound right
Hello romag59,
I am asking from you that if some one deactivate my plugin and then a reason form open and we asked reason why you want to deactivate so we improve our plugin functionality.
It’s common to deactivate plugins for debugging purposes, so pestering users with a dialog upon deactivation could be seen as annoying. The information garnered from such activity would not give you an accurate picture. I think what you’re really interested in would be why someone is uninstalling your plugin, not merely deactivating. To handle tasks of any sort when your plugin is uninstalled, use register_uninstall_hook().
If your plugin will be offered in the WP repository, the plugin review team rejects plugins that “phone home”. I don’t know if this is considered phoning home or not, it’s something the plugins review team should answer.