• Resolved arnaudmdg

    (@arnaudmdg)


    Hi guys,
    We are using your plugin for social registration and just wanted to know if we could swap the email sent to the new user (Currently wordpress new user default template) for the woocommerce new account email.
    Cheers!
    Arnaud

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi there,

    There isn’t any option for this in the plugin at the moment. You can refer to the thread https://wordpress.org/support/topic/send-woocommerce-new-account-email-after-new-user-logs-in-with-facebook/, if you are familiar with coding.
    Will add an option in the plugin to control this behavior in upcoming releases.

    Thread Starter arnaudmdg

    (@arnaudmdg)

    Amazing, thanks! Will try to code it, but it would be great to have the feature. Thanks for the plugin btw.

    Thread Starter arnaudmdg

    (@arnaudmdg)

    By the way, we tried the thread you suggest, none of the code snippets work for us unfortunately…

    Plugin Author Heateor Support

    (@heateor)

    Oh. Then I need to work on it and include this option in the upcoming releases of the plugin. Will keep you posted here.

    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
    Plugin Author Heateor Support

    (@heateor)

    @jakksteam Sorry for the late reply. Thanks for the suggestion. Will include this in plugin in the next update. Till then you can replace existing “wp-content/plugins/super-socializer/inc/social_login.php” file with the one at following link:
    https://gist.github.com/Heateor/0ce55d551da66ef8bc1d7042e588cbed

    Plugin Author Heateor Support

    (@heateor)

    This has been fixed in version 7.12.33

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘New user email’ is closed to new replies.