Johnny T
Member
Posted 2 years ago #
Hi
I want to 'time' something on my website. I know that WordPress says that activation links are only valid for 5 days. How does it determine whether a link is over 5 days old or not? Does it just do a compare on the current date vs the date in the wp_users table or is there something else?
Also, does anyone know in which file (and what function) this compare takes place?
It would give me a big head start writing my own code if I had an example to go off.
Many thanks for any help you can give me
John ;-)
im curious where or how you've determined that those links are only valid for 5 days.
Ive never tested that, and it would take 5 days to do so ..
Johnny T
Member
Posted 2 years ago #
It says it on the registration email, at least it does on mine...
hmm, on what registration email? the one that you get after registering?
All i get is a url a login name and a password.
Johnny T
Member
Posted 2 years ago #
Yep. On my site when you register an email says that the activation link is only valid for 5 days. Is that just my site then?? If so, it isn't a problem I'll just write the code myself.
umm, wordpress doesnt send an activation link when you register. it sends a password.
the ONLY reason you would need an activation link during registration were if you were allowing ppl to pick their passwords, as that negates the email verification that takes place by the passwd being sent..
know what I mean?
i think maybe thats what youre seeing.
Johnny T
Member
Posted 2 years ago #
Yes. I allow users to pick their passwords when they register. They then get the email that makes them confirm their email addy.
ok, well there you go -- the plugin youre using for that has the code you need to look at then :)
Johnny T
Member
Posted 2 years ago #
Thanks for that, sorry for the confusion.