Created
March 3, 2014 17:50
-
-
Save pippinsplugins/9330494 to your computer and use it in GitHub Desktop.
Modify the admin notification sent out when new users signup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function pw_rcp_custom_email_notice( $message, $user_id ) { | |
| $user_data = get_userdata( $user_id ); | |
| $user_email = $user_data->user_email; | |
| $message = "Hello admin, this is a custom alert message!\n\n"; | |
| $message .= "$user_email just signed up for an account."; | |
| return $message; | |
| } | |
| add_filter( 'rcp_before_admin_email_active_thanks', 'pw_rcp_custom_email_notice', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment