I'm getting an missing argument
error here. Any Idea?
function my_approve( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
// Send the email notification.
wp_mail( $user_email, $user_login . ' Yay', 'you have been approved' );
}
add_action( 'bp_core_activated_user', 'my_approve', 10, 5 );