Answer the question
In order to leave comments, you need to log in
How to delete a user if the registration date is greater than the registration expiration date?
Good afternoon, when registering, WP itself records the registration date in the users table
. I also added an additional field when registering through the admin panel, when processing which, say, 6 hours are added to the registration date.
And after this date is recorded in usermeta under the key user_expiration_date
Everything is fine, the recording is in progress, the time is added correctly.
But now I need to take the user id whose user_expiration_date will be less than the registration date.
How to do it?
Thanks in advance for the solution, I’ve already broken my head and I don’t quite understand how to write a competent condition so that with each page update I don’t load the server with an extra request.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question