wip emails front admin menu
This commit is contained in:
@@ -37,6 +37,8 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
$user = get_user_by('id', $user_id);
|
||||
$user_email = $user->user_email;
|
||||
|
||||
|
||||
$emails_option = Plgntls::get_option_safe($emails_option_object);
|
||||
@@ -60,7 +62,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
}
|
||||
if ($email['confirmation_send']) {
|
||||
$tmp_email = array();
|
||||
$tmp_email['to'] = $user_id;
|
||||
$tmp_email['to'] = $user_email;
|
||||
$tmp_email['subject'] = $email['confirmation_subject'];
|
||||
$tmp_email['message'] = $email['confirmation_message'];
|
||||
$tmp_email['headers'] = array('Content-Type: text/html; charset=UTF-8');
|
||||
|
||||
Reference in New Issue
Block a user