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.
- // run the action
- 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.
- // define the bp_core_sent_user_signup_email callback
- function action_bp_core_sent_user_signup_email( $bp_get_option, $email_subject, $email_content, $tokens_recipient_username, $tokens_recipient_email, $tokens_key, $array ) {
- // make action magic happen here...
- };
- // add the action
- 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.
- // remove the action
- 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
- 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() );