Skip to:
Content
Pages
Categories
Search
Top
Bottom

Welcome email not firing off for accounts created by social media login

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

  • Henry Wright
    Moderator

    @henrywright

    Are you using a social media plugin to create accounts? That plugin will likely have a hook you can use. If not then you should be able to request one be added


    bcanr2d2
    Participant

    @bcanr2d2

    Consider this one resolved, I found the function for the OneAll Social Login that fires off after the accounts are created, and it will now send off welcome emails for those that create accounts via the social media logins!

    Thanks for the tip, whilst they didn’t have an example of what I was after, they had plenty showing what function fired off after their account creation.

    In the end, so little code -will put on here for reference.

    add_action( 'oa_social_login_action_after_user_insert', 'oa_social_login_send_welcome_email', 10, 2);
    function oa_social_login_send_welcome_email ($user_data, $identity) {
    //Fire off BuddyPress Welcome email
    $user_id = $user_data->ID;
    bpdev_welcome_user_notification( $user_id);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar