K
K
Konstantin Lavrovsky2020-04-20 17:42:38
WordPress
Konstantin Lavrovsky, 2020-04-20 17:42:38

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

1 answer(s)
W
WP Panda, 2020-04-20
@wppanda5

How to add an ending to the registration date of a wordpress user?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question