bp_new_user_email_content

Filter the email text sent when a user changes emails.

Description

apply_filters( 'bp_new_user_email_content', (string) $value, (string) $tokens_recipient_email, (string) $tokens_old_user_email, (bool) $false ); 

Parameters (4)

0. $value (string)
Text of the email.
1. $tokens_recipient_email (string)
New user email that the current user has changed to.
2. $tokens_old_user_email (string)
Existing email address for the current user.
3. $false (bool) => false
Removed in 2.5; now a bool (false).

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( 'bp_new_user_email_content', $value, $tokens_recipient_email, $tokens_old_user_email, $false ); 
  2.  
  3. if ( !empty( $value ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_new_user_email_content callback 
  2. function filter_bp_new_user_email_content( $value, $tokens_recipient_email, $tokens_old_user_email, $false ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_new_user_email_content', 'filter_bp_new_user_email_content', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_new_user_email_content', 'filter_bp_new_user_email_content', 10, 4 ); 

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. $value = apply_filters( 'bp_new_user_email_content', $value, $tokens['recipient.email'], $tokens['old-user.email'], false );