BuddyDev

Search

trigger: User requests to join a private group action: recieve email

  • Participant
    Level: Master
    Posts: 153
    Talia B on #41051

    hello everyone
    how can i apply this:
    trigger:
    User requests to join a private group (specific one. not any private group)
    action:
    send him an email that sais – Send us a reference that you belong to this profession group

    I’m trying to find a way to let the user know what the entry conditions are for a particular private group. How can this be done?

    it sound so basic i but i cant find such a soultion,
    do you have any?

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #41090

    Hi,
    Thank you for the question.

    Here is the action fired on private group membership request.

    
    do_action( 'groups_membership_requested', $user_id, $admins, $group_id, $request_id );
    

    You can hook to the action ‘groups_membership_requested’ and check for the 3rd parameter, which is the group id.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved