If you still haven’t completed this yet.
function heateor_ss_new_user_notification($userId){
global $theChampLoginOptions;
$notificationType = '';
if(isset($theChampLoginOptions['password_email'])){
$notificationType = 'both';
}elseif(isset($theChampLoginOptions['new_user_admin_email'])){
$notificationType = 'admin';
}
if($notificationType){
if(class_exists('WC_Emails')) {
$wc_emails = WC_Emails::instance();
$wc_emails->customer_new_account($userId);
} else {
wp_new_user_notification($userId, null, $notificationType);
}
}
}
Here is my code that I’m using and actually works.
Previous Reply :
Is the option available already?
Where or how should I go around doing this?
-
This reply was modified 6 years, 9 months ago by jakksteam. Reason: Adding my own code for sample on how it should be done