Social login bypassing buddypress registration fix!

edited November 2015 in Questions
Hi,

So we send welcome message to new registered users using the Buddypress hook bp_core_activated_user and function messages_new_message, now oneall bypasses the Buddypress registration process so users registering by login with social media do not get this welcome message. What is the suggested work around to get this working with the social login?

Thanks
Miro

Best Answer

  • Miro_NomMiro_NomMember
    edited November 2015 Answer ✓
    Hi Frederic,

    Thanks for the action call! Worked nicely, but I also had to add do_action('bp_init'); to get it working with your action so to initialize in Buddypress tables

    All the best,
    Miro

Answers

  • Yes please, Miro here is our developer and we are on a Business Account. We really need this to work for Oneall to remain a viable system for us.
  • Hi,
    Indeed, we do not call this action.
    However, we call
    do_action ('user_register', $user_id);, and our custom action, right after: do_action ('oa_social_login_action_after_user_insert', $user_data, $identity);
    So, you could a add_action('oa_social_login_action_after_user_insert' ...) where you send the private message?

    Another way would be for our plugin to hook into the Buddypress registration process. We're not familiar with this, however, if you have some action to call, we can find out where to place it in the plugin.

    Hope this helps.
  • Ah, good, thanks for the information!

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.