bp_email_update_welcome_user_email( string $welcome_email, int $user_id, string $password, array $meta )
Filters the content of the welcome email after user activation.
Description
Content should be formatted for transmission via wp_mail().
Parameters
- $welcome_email
-
(Required) The message body of the account activation success email.
- $user_id
-
(Required) User ID.
- $password
-
(Required) User password.
- $meta
-
(Required) Signup meta data. Default empty array.
Source
File: bp-core/bp-core-wp-emails.php
function bp_email_update_welcome_user_email( $welcome_email, $user_id, $password, $meta ) { add_filter( 'wp_mail_content_type', 'bp_email_set_content_type' ); //add this to support html in email $welcome_email = bp_email_core_wp_get_template( $welcome_email, get_userdata( $user_id ) ); return $welcome_email; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.