I’m slowly learning how to add the modifier codes to the functions.php in order to modify the email being sent out to approved users, but one question…
Say I’m running tests creating users right.
I approved a pending user I created. Checked the email, liked what I saw..
Then denied the user account. Checked the email again, liked what I saw.
So finally, I went back and approved the account again, and then I noticed the email I received didn’t have the password.
The first time I hit approve, the email that was sent out DID contain the password.
Any reason why the second time being approved would not cause a password to be inserted for the user in the email?
Here’s the modifying code I added to change the subject line, don’t think it has anything to do with the problem, but what do I know. ??
/**
* Modify the subject of a message sent to a user after being approved.
*
* @param $message The default message.
* @return string the updated message.
*/
function my_custom_subject( $subject ) {
$subject = ‘STEP 2: Get Approved’;
return $subject;
}
// modify the subject for the approval message
add_filter( ‘new_user_approve_approve_user_subject’, ‘my_custom_subject’ );