bp_core_sent_user_signup_email

Fires after the sending of the notification to new users for successful registration without blog.

Description

do_action( 'bp_core_sent_user_signup_email', (string) $bp_get_option, (string) $email_subject, (string) $email_content, (string) $tokens_recipient_username, (string) $tokens_recipient_email, (string) $tokens_key, (array) $array ); 

Parameters (7)

0. $bp_get_option (string) => bp_get_option( 'admin_email' )
Admin Email address for the site.
1. $email_subject (string)
Subject used in the notification email.
2. $email_content (string)
Message used in the notification email.
3. $tokens_recipient_username (string)
The tokens recipient username.
4. $tokens_recipient_email (string)
The tokens recipient email.
5. $tokens_key (string)
The activation key created in wpmu_signup_blog().
6. $array (array) => array()
Removed in 2.5; now an empty array.

Usage

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

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. do_action( 'bp_core_sent_user_signup_email', bp_get_option( 'admin_email' ), $email_subject, $email_content, $tokens['recipient.username'], $tokens['recipient.email'], $tokens['key'], array() );