简体   繁体   English

注册后从wordpress和woocommerce发送两个电子邮件? 怎么预防?

[英]Two email sent from wordpress and woocommerce after register? how to prevent?

My shopping website is created by WordPress and WooCommerce. 我的购物网站是由WordPress和WooCommerce创建的。 When user registers in website, two emails are sent to user, one from WooCommerce and one from WordPress. 当用户在网站上注册时,会向用户发送两封电子邮件,一封来自WooCommerce,另一封来自WordPress。 How can I prevent WordPress from sending the email? 如何防止WordPress发送电子邮件? I just need woo commerce send the register successful email. 我只需要woo Commerce发送成功的注册电子邮件。

Add this to your theme's 'functions.php' which will disable both user & admin notifications. 将此添加到主题的“ functions.php”中,这将同时禁用用户和管理员通知。

if ( ! function_exists( 'wp_new_user_notification' ) ) :
    function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) {
        return;
    }
endif;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM