• Hello everyone,
    After installing 3 plugins (wps login/wps hide url and a two-factor authentication plugin), the emails received after registration contain
    an additional line (the one in red) which refers to the connection but… without the choice of the password, which poses a problem for the user who will not be able to register without it.

    https://ibb.co/dmkwQwB

    I disabled the plugins in question, emptied the browser cache but the problem is still there.

    What file should I go to to fix this?

    Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    The message says visit the following address, not visit the second address ??
    At least in English, it could read differently in French, IDK.

    Either way, I can see how it could be confusing to novice users. The second generic login URL is part of the default message though, it’s not due to any theme or plugin. You can alter the default message through the ‘wp_new_user_notification_email’ filter.

    An aside, did you know researchers have found ways to unblur text that had been blurred by image editing software? The blurred out user and key in you image could be revealed! The key is likely invalid at this point, so there is hardly any risk here. The unblur ability is an interesting fact to keep in mind though.

    Thread Starter mand01

    (@mand01)

    Hello bcworkz and thank you for stopping by my post.

    Indeed, the second link is confusing for the user who will realize that after clicking on the link
    he will not be able to connect to his account whereas with the first, yes he will be able.
    It may confuse and not encourage registration :/
    As for the blur I used, thank you for letting me know ??

    For the filter you indicate, what must be indicated at the filter level so that the second link disappears from the email sent to the user?

    • This reply was modified 1 year, 10 months ago by mand01.
    Moderator bcworkz

    (@bcworkz)

    Review the source code where the filter is applied.

    The message is passed to your callback in $wp_new_user_notification_email['message']. Alter or recreate as desired, then return the updated $wp_new_user_notification_email array.

    You can alter the message using PHP string manipulation functions like substr(). Determine where to terminate the substr by subtracting an appropriate number from what strlen() returns.

    Alternately, compose an entirely new message. Refer to the code above the filter application to see how the set password URL is constructed.

    If you are unfamiliar with adding filter callbacks, refer to the Plugin Handbook. The same code will also work from a theme’s functions.php file.

    Thread Starter mand01

    (@mand01)

    Well, this information is very technical and I’m not at all sure to be up to your explanations!
    I went to look in pluggable.php and there is almost nothing, no filters.
    :/

    • This reply was modified 1 year, 10 months ago by mand01.
    Moderator bcworkz

    (@bcworkz)

    Of course there are filters. You’re just reinforcing the fact that the concept is too technical for you ?? That’s OK, coding isn’t for everyone. I’m sure you’re very accomplished in other fields. I applaud you for at least taking a look to see if there is anything you could manage. But it puts you at a disadvantage for customizing WP exactly as you desire.

    See if you can find a plugin that will let you alter new registration messaging.
    https://www.ads-software.com/plugins/search/customize+email/
    The Better Notifications for WP plugin looks promising. I’ve no experience with it though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mail after registration: two lines. One too many!’ is closed to new replies.