bp_email_wpmu_signup_user_notification_email( string $content, string $user_login, string $user_email, string $key, array $meta )
Filters the content of the notification email for new user sign-up.
Description
Content should be formatted for transmission via wp_mail().
Parameters
- $content
-
(Required) Content of the notification email.
- $user_login
-
(Required) User login name.
- $user_email
-
(Required) User email address.
- $key
-
(Required) Activation key created in wpmu_signup_user().
- $meta
-
(Required) Signup meta data. Default empty array.
Source
File: bp-core/bp-core-wp-emails.php
function bp_email_wpmu_signup_user_notification_email( $content, $user_login, $user_email, $key, $meta ) { add_filter( 'wp_mail_content_type', 'bp_email_set_content_type' ); //add this to support html in email $content = bp_email_core_wp_get_template( $content, get_user_by( 'email', $user_email ) ); return $content; }
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.