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

注册后从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
    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;
    
    点赞 评论

相关推荐