A
A
Alexey Koval2019-03-14 10:31:16
Email
Alexey Koval, 2019-03-14 10:31:16

How to send notifications about the number of days since user registration on Wordpress?

Good afternoon, colleagues!
There is a task - to send Wordpress administrators by e-mail information about the number of days since the user registered as a subscriber: That is, the user registers, after 10 days a message arrives: "user% username% has been with us for 10 days", after month: "user %username% has been with us for 30 days".
How could this be implemented using plugins or maybe scripts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2019-03-14
@Kozack

  1. Learn cron . This is necessary in order to implement the background process.
  2. Your background process will run, conditionally every hour.
  3. Every hour, it should select from the database users in the role you need and look for those who registered more than 10 days ago, but who have not yet been reported .
  4. Create a list of such users and send an email
  5. You mark each of their selected users so as not to notify about it again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question