Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lukasolta

    (@lukasolta)

    Actually, I’m just using the raw WP register flow.
    I just use some plugins or php to design the form better.

    Perhaps the checkbox to choose a trigger could work only on those WP system levels, and then have a disclaimer that specific plugins complicate things and you cannot cover them all.

    Also, the thing I’m after doesn’t have to be a password-set trigger. It can be something else like first login etc. I’ll take anything if it separates the emails being sent.

    Anyway, currently I’ll keep the content from the 2 emails we’re talking about, in only 1 email being sent, which is the pass set email. And then I’ll go from there and see how things work out.

    Thanks and cheers!

    Thread Starter lukasolta

    (@lukasolta)

    Thanks for the quick response! So it is a deliberate feature.
    I suppose you guys have your reasons to keep it that way.
    I don’t see value in sending both emails at once. My users are as-is increadibly easy to confuse and to get paralyzed on unexpected flow steps.
    If I send 2 emails, one of which is “yeah, but first you need to find this OTHER email that I just sent you, to activate the whole thing, and ONLY THEN come back to THIS email”
    It’s just more clean to send them one by one.
    That way you minimize the confusion.

    I guess you can take this case as a feature request – can you get us a check-box-like option to choose when can this second/immediate/informative email be sent: immediately or only after password set?
    That’s exactly what the other user on this forum (the only other thread with this exact topic) was looking for and got within his buddypress setup (which I don’t use), so I suppose there could be more people out there needing this?

    Anyway, thank you for the plugin, I respect the amount of attention to detail and simplicity you put into it. When put next to all the other similar plugins on the market, it just stands out. Thanks!

    Thread Starter lukasolta

    (@lukasolta)

    Update – I have another upublished site I’m building and I was able to test this there thouroughly. I deactivated ALL the plugins there except for elemento pro. No use, still both emails are sent at once.

    I then tried to insert this snippet into my child theme php (AI idea):


    add_filter('bnfw_skip_notification', 'delay_post_registration_email_bnfw', 10, 3);
    function delay_post_registration_email_bnfw($skip, $notification_type, $object_id) {
    if ($notification_type === 'Welcome email post-registration [user]') {
    $user = get_userdata($object_id);
    if ($user && !get_user_meta($user->ID, 'post_registration_sent', true)) {
    return true; // Delay sending
    }
    }
    return $skip;
    }


    add_action('wp_login', 'send_post_registration_email_on_login', 10, 2);
    function send_post_registration_email_on_login($user_login, $user) {
    if (!get_user_meta($user->ID, 'post_registration_sent', true)) {
    update_user_meta($user->ID, 'post_registration_sent', true);

    if (function_exists('bnfw_send_notification')) {
    bnfw_send_notification('Welcome email post-registration [user]', $user->ID);
    }
    }
    }

    The title of my welcome email that needs to be sent second is “Welcome email post-registration [user]”, so that’s what I used in the snippet to set it up.

    But, no use. I made no progress whatsoever. I tried also with the trigger of “password set”, not the one of “first login”. No difference. Always both emails go out together.

    I have temporatily resolved this by simple logic – merging the password set email and welcome email into 1. If the bug (feature) sends them both at once, it’s logical to merge them to reduce confusion. Although it’s not optimal for the password link to be in the welcome email with your information on how to use yuor profile, bc users might click it many times and change passwords multiple times, which is not clean.

    I might next try out to edit these elementary system email manually in php without any plugin.

    I searched the wp plugin market for these solutions, tried about 10 plugins, and this plugin is by far the best one that cleanly resolves the system email thing. But this little bug is a real sticking point. Honestly I don’t see a point in both emails going out at once. How can that be a feature?

    I’m really eager to hear some ideas and get help on this.

    Thread Starter lukasolta

    (@lukasolta)

    @bruberries, just to let you know, it worked, you fixed it.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)