bp_groups_sent_membership_request_email

Fires after the notification is sent that a member has requested group membership.

Description

do_action( 'bp_groups_sent_membership_request_email', (int) $tokens_admin_id, (string) $email_subject, (string) $email_content, (int) $tokens_requesting_user_id, (int) $tokens_group_id, (int) $tokens_membership_id ); 

Parameters (6)

0. $tokens_admin_id (int)
ID of the group administrator.
1. $email_subject (string)
Email notification subject text.
2. $email_content (string)
Email notification message text.
3. $tokens_requesting_user_id (int)
ID of the user requesting membership.
4. $tokens_group_id (int)
ID of the group receiving membership request.
5. $tokens_membership_id (int)
ID of the group membership object.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_groups_sent_membership_request_email', $tokens_admin_id, $email_subject, $email_content, $tokens_requesting_user_id, $tokens_group_id, $tokens_membership_id ); 
The following example is for adding a hook callback.
  1. // define the bp_groups_sent_membership_request_email callback 
  2. function action_bp_groups_sent_membership_request_email( $tokens_admin_id, $email_subject, $email_content, $tokens_requesting_user_id, $tokens_group_id, $tokens_membership_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_groups_sent_membership_request_email', 'action_bp_groups_sent_membership_request_email', 10, 6 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_groups_sent_membership_request_email', 'action_bp_groups_sent_membership_request_email', 10, 6 ); 

Defined (1)

The action is defined in the following location(s).

/bp-core/deprecated/2.5.php  
  1. do_action( 'bp_groups_sent_membership_request_email', $tokens['admin.id'], $email_subject, $email_content, $tokens['requesting-user.id'], $tokens['group.id'], $tokens['membership.id'] );