• How do you change or edit the activation email that gets sent out automatically when someone registers to your website?

    some of the hooks I’ve seen online are outdated I think and the couple of plugins I’ve seen are not current.

    please help

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Hook the ‘retrieve_password_message’ filter for the message body and ‘retrieve_password_title’ for the subject. These filters are applied in wp-login.php around line 348.

    This is the same email that is used when someone resets their password when they’ve lost theirs. There isn’t a separate registration process. The new user is fully activated from the start, but they do not know their password. This is how they get it. If you need to handle password resets differently than registrations, check the registration date of the user. The reset key is good for 24 hours. If they’ve registered less than 24 hours ago, it’s very likely a new registration.

Viewing 1 replies (of 1 total)

The topic ‘Changing Editing Activation Email’ is closed to new replies.