Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created March 3, 2014 17:50
Show Gist options
  • Select an option

  • Save pippinsplugins/9330494 to your computer and use it in GitHub Desktop.

Select an option

Save pippinsplugins/9330494 to your computer and use it in GitHub Desktop.
Modify the admin notification sent out when new users signup
<?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