bp_groups_sent_membership_approved_email

Fires after the notification is sent that a membership has been approved.

Description

do_action( 'bp_groups_sent_membership_approved_email', (int) $tokens_requesting_user_id, (string) $email_subject, (string) $email_content, (int) $tokens_group_id ); 

Parameters (4)

0. $tokens_requesting_user_id (int)
ID of the user whose membership was approved.
1. $email_subject (string)
Email notification subject text.
2. $email_content (string)
Email notification message text.
3. $tokens_group_id (int)
ID of the group that was joined.

Usage

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

Defined (1)

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

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