Does it OK, to send email (to me) after user activate my plugin?
Does it a right way to do that (https://developer.wordpress.org/plugins/the-basics/activation-deactivation-hooks/) with hook?
thanks
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityDoes it OK, to send email (to me) after user activate my plugin?
Does it a right way to do that (https://developer.wordpress.org/plugins/the-basics/activation-deactivation-hooks/) with hook?
thanks
In the context of official plugin repository this is very explicitly forbidden by the guidelines (emphasis mine):
7. No "phoning home" without user's informed consent. This seemingly simple rule actually covers several different aspects:
- No unauthorized collection of user data. For example, sending the admin's email address back to your own servers without permission of the user is not allowed; but asking the user for an email address and collecting if they choose to submit it is fine.
Other than that it will risk you reputation (imagine what user will really like discovering you did it?) and might have legal implications.