bp_core_sent_user_validation_email

Fires after the sending of activation email to a newly registered user.

Description

do_action( 'bp_core_sent_user_validation_email', (string) $email_subject, (string) $email_content, (int) $tokens_user_id, (string) $tokens_recipient_email, (string) $tokens_key ); 

Parameters (5)

0. $email_subject (string)
Subject for the sent email.
1. $email_content (string)
Message for the sent email.
2. $tokens_user_id (int)
The tokens user id.
3. $tokens_recipient_email (string)
Email address of the new user.
4. $tokens_key (string)
The tokens key.

Usage

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

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. do_action( 'bp_core_sent_user_validation_email', $email_subject, $email_content, $tokens['user.id'], $tokens['recipient.email'], $tokens['key'] );