BuddyDev

Search

Only allow group invitations by searching for user's email

  • Participant
    Level: Initiated
    Posts: 1
    bongoman on #32597

    We only want to allow a member to invite another member to their hidden group if they know their email address.

    So we want the group invitation feature to only search on email field and return the corresponding user so that they can be invited.

    Any thought son who to achieve this would be appreciated.

  • Keymaster
    (BuddyDev Team)
    Posts: 21796
    Brajesh Singh on #32607

    Hi,
    Welcome to Buddydev.

    If you are using Nouveau, It is doable.

    Please take a look at the function

    bp_nouveau_ajax_get_users_to_invite
    

    You need to hook to ‘wp_ajax_groups_get_group_potential_invites’ and make sure to handle the requests at higher priority than ‘bp_nouveau_ajax_get_users_to_invite’

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    bongoman on #32733

    Thanks Brajesh

    We’re actually buddyboss which is based on nouveau I understand. I’ll have a look at that function.

  • Keymaster
    (BuddyDev Team)
    Posts: 21796
    Brajesh Singh on #32739

    Good to know.

    All the best.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved