Adding WP Username to Comment Reply Notification Email
I just started using and love your plugin’s functions, but had one small question. I want to edit the comment reply notification emails slightly, just to make them more engaging for the reader.
The main thing I’m trying to accomplish is putting the first and last name of the user at the top of the email. I know it's in the email helper, and tried:
$username = wp_get_current_user(); $message .= "Hi $username";
as well as $currentUser, and a couple other options, but the wp_get_current_user() function doesn’t seem to work here. I am a novice in WordPress and PHP in general, so excuse me for butchering your elegant code, but I was just wondering if you had a quick suggestion or snippet as to how to have a personalized greeting per user at the beginning of each email.