Skip to content
Corex

ResetEmailLink

Corex\Profile\Reset\ResetEmailLink · class · Add-ons layer

Has WordPress’s password-reset email link to the page the reset was asked from. The email stays WordPress’s: retrieve_password() makes the key, writes the email and sends it, and whatever else filters that email still does. One thing in it is changed, the address that carries the key, and only while a reset asked through the account block is being answered. A reset asked at wp-login.php is not touched (DECISIONS #341).

during(int $pageId, callable $request): mixed

Section titled “during(int $pageId, callable $request): mixed”

Runs a request for a reset, with its email linking to that page.

toPage(int $pageId, string $message, string $key, string $login): string

Section titled “toPage(int $pageId, string $message, string $key, string $login): string”

The email’s text with the address that carries this key replaced by the page’s. The address is found by its key, not rebuilt: where login protection hides the login it is not the one WordPress would write, and a plugin may have set it in markup.