dsijovl015728613 2018-09-02 07:34
浏览 124
已采纳

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

My shopping website is created by WordPress and WooCommerce. When user registers in website, two emails are sent to user, one from WooCommerce and one from WordPress. How can I prevent WordPress from sending the email? I just need woo commerce send the register successful email.

  • 写回答

1条回答 默认 最新

  • duanfu6160 2018-09-02 07:56
    关注

    Add this to your theme's 'functions.php' which will disable both user & admin notifications.

    if ( ! function_exists( 'wp_new_user_notification' ) ) :
        function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) {
            return;
        }
    endif;
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?